SHARE
TWEET

RPi GPIO Python Test

w0lfiesmith Jun 8th, 2013 513 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import RPi.GPIO as GPIO
  2. import time
  3.  
  4. GPIO.setmode(GPIO.BCM)
  5.  
  6. GPIO.setup(4, GPIO.OUT)
  7.  
  8. for x in range(0,10):
  9.   time.sleep(5)
  10.   GPIO.output(4,1)
  11.   time.sleep(5)
  12.   GPIO.output(4,0)
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