Skip to content

Instantly share code, notes, and snippets.

@maskaravivek
Last active July 12, 2020 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save maskaravivek/c9994a76950a6b533b99c02165341fdd to your computer and use it in GitHub Desktop.
Save maskaravivek/c9994a76950a6b533b99c02165341fdd to your computer and use it in GitHub Desktop.
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