Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import RPi.GPIO as GPIO
- from time import sleep
- GPIO.setmode(GPIO.BCM)
- GPIO.setup(14, GPIO.OUT)
- while True:
- GPIO.output(14, GPIO.HIGH)
- a = GPIO.input(14)
- print (a)
- sleep(1)
- GPIO.output(14, GPIO.LOW)
- a = GPIO.input(14)
- print (a)
- sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement