Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 #!/usr/bin/sudo /usr/bin/python
- 2
- 3 import RPi.GPIO as GPIO
- 4 from time import sleep
- 5
- 6 toggle_pin = 27
- 7
- 8 GPIO.setmode(GPIO.BCM)
- 9
- 10 GPIO.setup(27, GPIO.OUT)
- 11
- 12 while True:
- 13 print "top loop change to high"
- 14 GPIO.output(27,GPIO.LOW )
- 15 GPIO.output(27, GPIO.HIGH)
- 16 sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement