06-24-2020, 06:51 PM
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))