Skip to content

Instantly share code, notes, and snippets.

@li2hub
Created Oct 23, 2018
Embed
What would you like to do?
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