- Code: Select all
import RPi.GPIO as GPIO
from time import sleep
if GPIO.input(2) == False:
elif GPIO.input(2) == True:
The code runs, just that it doesn't really detect our input properly. (so I'm assuming something's wrong) It just keeps on printing "Circuit Open" even when we have our input on HIGH.
Refer to this thread for more details:
https://www.raspberrypi.org/forums/view ... 7&t=177029
Any help would be appreciated, Thanks!