Created
October 23, 2018 10:11
-
-
Save li2hub/6a6014f611def81d042a57933088dbc2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment