Permalink
Switch branches/tags
Nothing to show
Find file
08a3aad Apr 2, 2017
10 lines (10 sloc) 203 Bytes
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(21,GPIO.OUT)
print "LED on"
GPIO.output(21,GPIO.HIGH)
time.sleep(10)
print "LED off"
GPIO.output(21,GPIO.LOW)