Skip to content

Instantly share code, notes, and snippets.

@exp0nge
Created April 7, 2018 04:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save exp0nge/ccf858ea7c8556337c83c15d8ba7add1 to your computer and use it in GitHub Desktop.
Save exp0nge/ccf858ea7c8556337c83c15d8ba7add1 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(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