Last active
August 29, 2015 13:56
-
-
Save apexskier/8893525 to your computer and use it in GitHub Desktop.
Fishbowl timer
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
""" | |
Uses my ledDriver for the Raspberry Pi to make a minute long game timer. | |
Just made in a few minutes one night. | |
https://github.com/apexskier/ledDriver | |
""" | |
import time, math | |
from homedo.libs.rgbLED.ledDriver import RGBDriver | |
d = RGBDriver() | |
def fbtimer(): | |
d.to_hex_color("#00ff00", 100) | |
time.sleep(50) | |
for i in range(0, 5): | |
d.to_hex_color("#ffff00", 200) | |
time.sleep(0.3) | |
d.to_hex_color("#00ff00", 200) | |
time.sleep(0.3) | |
for i in range(0, 5): | |
d.to_hex_color("#ff5500", 200) | |
time.sleep(0.3) | |
d.to_hex_color("#ffff00", 200) | |
time.sleep(0.3) | |
d.to_hex_color("#ff0000", 200) | |
fbtimer() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment