Last active
May 16, 2016 21:33
-
-
Save alexellis/3840203f8463fef438ea9dd38cb6c7fd to your computer and use it in GitHub Desktop.
Broken..
This file contains hidden or 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
# 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