a.py 75 Bytes
Newer Older
Hugo Hornquist's avatar
Hugo Hornquist committed
1 2 3 4 5
import RPi.GPIO as g

g.setmode(g.BCM)
g.setup(22, g.IN)
print g.input(22)