Skip to content

Instantly share code, notes, and snippets.

@rxseger
Created October 13, 2016 05:56
Show Gist options
  • Save rxseger/47f8cf1df107039734696bbdb37391ef to your computer and use it in GitHub Desktop.
Save rxseger/47f8cf1df107039734696bbdb37391ef to your computer and use it in GitHub Desktop.
blink LED
#!/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