Created
October 13, 2016 05:56
-
-
Save rxseger/47f8cf1df107039734696bbdb37391ef to your computer and use it in GitHub Desktop.
blink LED
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
#!/usr/bin/python | |
import RPi.GPIO as GPIO | |
import time | |
GPIO.setmode(GPIO.BOARD) | |
DOT = 36 # G16 | |
GPIO.setwarnings(False) | |
GPIO.setup(DOT, GPIO.OUT, initial=GPIO.LOW) | |
on = True | |
while True: | |
GPIO.output(DOT, on) | |
on = not on | |
time.sleep(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment