Last active
July 12, 2020 23:35
-
-
Save maskaravivek/c9994a76950a6b533b99c02165341fdd 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(17,GPIO.OUT) | |
print "LED on" | |
GPIO.output(17,GPIO.HIGH) | |
time.sleep(10) | |
print "LED off" | |
GPIO.output(17,GPIO.LOW) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment