Commit 458aec5a authored by Fjen Undso's avatar Fjen Undso
Browse files

c.py: add lights support

parent 331061c4
......@@ -3,6 +3,7 @@ import logging
from curses import wrapper
import curses
import time
import lights
class CursesHandler(logging.Handler):
......@@ -310,6 +311,9 @@ def main(stdscr):
stdscr.refresh()
while True:
k = stdscr.getkey()
colors = lights.make_stripe_data(
[numbers[1].value, numbers[0].value, numbers[2].value, numbers[3].value] * 42)
lights.send(colors)
logger.info(k)
fs_main.send_key(k)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment