Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


GPIO buttons that fire on connect.
#3
Cry
But I'm all nervous Kent, I don't want to break my system!

But I did go a-hacking anyway and find that:

Code:
           if GPIO.input(channel) == 0:
rather than:

Code:
           if GPIO.input(channel) == 1:
in the gpio-buttons.py file has the desired effect.

Now to work out how that works because my current understanding suggests it shouldn't be enough on its own.
----------------
Robert
Reply


Messages In This Thread
RE: GPIO buttons that fire on connect. - by the_bertrum - 07-07-2021, 05:10 PM

Forum Jump: