New answers tagged

1

The callback will be triggered when the GPIO changes level. There is nothing you can do to prevent that happening apart from disabling the callback. Perhaps you need to look into why the GPIO level is changing and find a work around in your code.


1

It seems you are affected by https://sourceforge.net/p/raspberry-gpio-python/tickets/187/, which has been fixed in 0.7.1a2, and is a GCC, not a Python issue. It can be circumvented by doing export CFLAGS=-fcommon first, before installing rpi.gpio. However, the latest stable release 0.7.0 does not fully support RPI4. So you might want to install version 0.7....


0

It is solved now. The issue was that the step-up converter was unable to provide enough current. So I used another device for powering it and it works. Peace!


7

It looks like the latest release does not support Python 3.9 but the alpha releases do: https://www.piwheels.org/project/RPi.GPIO/ You can install the alpha version with: pip install rpi-gpio --pre


Top 50 recent answers are included