08-09-2016, 02:15 PM
I use this code
I have this setup
http://imgur.com/a/HjjuE
and I get nothing but "0" in the console.
Code:
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setup(3, GPIO.IN)
while True:
print GPIO.input(3)
http://imgur.com/a/HjjuE
and I get nothing but "0" in the console.