import RPi.GPIO as GPIOimport 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)
No comments:
Post a Comment