Skip to content

Instantly share code, notes, and snippets.

@alexellis
Last active May 16, 2016 21:33
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 alexellis/3840203f8463fef438ea9dd38cb6c7fd to your computer and use it in GitHub Desktop.
Save alexellis/3840203f8463fef438ea9dd38cb6c7fd to your computer and use it in GitHub Desktop.
Broken..
# This was broken until I changed GPIO.BCM to GPIO.BOARD
import RPi.GPIO as GPIO
import time
import os
# Define PiLITEr to GPIO mapping
leds = [7,11,13,12,15,16,18,22]
GPIO.setmode(GPIO.BOARD)
for pin in leds:
GPIO.setup(pin, GPIO.OUT)
for pin in leds:
GPIO.output(pin, GPIO.LOW)
time.sleep(0.1)
GPIO.output(pin, GPIO.HIGH)
time.sleep(0.5)
GPIO.output(pin, GPIO.LOW)
time.sleep(0.5)
GPIO.cleanup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment