Pi GPIO event interrupts

WHY, WHY, WHY is it so difficult. I have been trying to use event interrupts in python 3 on a Pi Zero. However continue to get the error ‘failed to set up event triggering’ or something to that effect. Have done a lot of reading with no luck.
The same functions under Micro Python work very well???

Does anyone realy have the answer.

Bryan

Oops meant to include, Micro Python on the. Pico.

Update, the code works fine on Raspberry Pi 4.

1 Like

Bizzare that it worked on the 4 but no the zero. Same operating system on both?

Hi Bryan,

You can check what versions of Python are installed on your Pi Zero and 4 with this command.
ls /usr/bin/python*
You may find that the Pi 4 could have Python 2 and 3.

Could you share your code with us?

Jack
Thank you. Will check as you suggest.