Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import
- import RPi.GPIO as GPIO
- import time
- GPIO.setmode(GPIO.BCM)
- GPIO.setwarnings(False)
- #setup
- GPIO.setup(19, GPIO.OUT)
- print "Light on"
- GPIO.output(19, GPIO.HIGH)
- print "Wait 5 seconds"
- time.sleep(5)
- print "Turn off lights"
- GPIO.output(19, GPIO.LOW)
- GPIO.cleanup()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement