Guest User

Untitled

a guest
Oct 23rd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. import RPi.GPIO as GPIO
  2. import time
  3.  
  4. GPIO.setmode(GPIO.BCM)
  5. GPIO.setwarnings(False)
  6. GPIO.setup(18,GPIO.OUT)
  7. print "LED on"
  8. GPIO.output(18,GPIO.HIGH)
  9. time.sleep(1)
  10. print "LED off"
  11. GPIO.output(18,GPIO.LOW)
Add Comment
Please, Sign In to add comment