Skip to content

Instantly share code, notes, and snippets.

@apexskier
Last active August 29, 2015 13:56
Show Gist options
  • Save apexskier/8893525 to your computer and use it in GitHub Desktop.
Save apexskier/8893525 to your computer and use it in GitHub Desktop.
Fishbowl timer
"""
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