Advertisement
Guest User

Untitled

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