Advertisement
Guest User

Untitled

a guest
Feb 17th, 2014
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import RPi.GPIO as GPIO
  2. GPIO.setmode(GPIO.BCM)
  3.  
  4. GPIO.setup(17,GPIO.IN, pull_up_down=GPIO.PUD_UP)
  5. input = GPIO.input(17)
  6.  
  7. while 1:
  8.  
  9. while False:
  10. if (GPIO.input(17)):
  11. print ("One Rev")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement