2019-04-14 02:05:57 +02:00

6 lines
91 B
Python

import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(4, GPIO.IN)
print GPIO.input(4)