SHARE
TWEET

Untitled

a guest Feb 17th, 2014 36 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top