Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import RPi.GPIO as GPIO
- import time
- GPIO.setmode(GPIO.BCM)
- GPIO.setwarnings(False)
- GPIO.setup(18,GPIO.OUT)
- print "LED on"
- GPIO.output(18,GPIO.HIGH)
- time.sleep(1)
- print "LED off"
- GPIO.output(18,GPIO.LOW)
Add Comment
Please, Sign In to add comment