Commit 41f110c0 authored by Fjen Undso's avatar Fjen Undso
Browse files

nchl: send data only to selected ESPs

parent a8531cd8
......@@ -94,12 +94,15 @@ 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)
# send values to ESPs
colors = lights.make_stripe_data(
[numbers[1].value, numbers[0].value, numbers[2].value, numbers[3].value] * 42)
esps = [e.text for e in checkboxes_top + checkboxes_bottom if e.active]
lights.send_to_many(colors, esps)
if __name__ == '__main__':
wrapper(main)
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