Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import RPi.GPIO as GPIO
- import time
- GPIO.setwarnings(False)
- GPIO.setmode(GPIO.BCM)
- GPIO.setup(16, GPIO.OUT)
- for num in range(1, 5):
- print num
- GPIO.output(16, True) ##Turn OFF LED
- print "LED OFF"
- time.sleep(2)
- GPIO.output(16, False) ##Turn ON LED
- print "LED ON"
- time.sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement