Thank you for your donation!


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


Problem: GPIO button false trigger on startup
#4
If I check the state of the pin with this script before running gpio-buttons.py, it always returns 1
Code:
import RPi.GPIO as GPIO

GPIO.setmode(GPIO.BCM)
GPIO.setup(3, GPIO.IN)

print(GPIO.input(3))
Reply


Messages In This Thread
GPIO button false trigger on startup - by waffle - 06-24-2020, 04:21 PM
RE: GPIO button false trigger on startup - by waffle - 06-24-2020, 06:51 PM

Forum Jump: