Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import RPi.GPIO as GPIO
- import time
- GPIO.setmode(GPIO.BOARD)
- GPIO.setup(11, GPIO.OUT)
- # loop through 50 times, on/off for 1 second
- for i in range(50):
- GPIO.output(11, True)
- time.sleep(1)
- GPIO.output(11, False)
- time.sleep(1)
- GPIO.cleanup()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement