parent
b4568e3e51
commit
7fae147f14
|
@ -77,6 +77,7 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
mqttc.loop_start()
|
mqttc.loop_start()
|
||||||
while True:
|
while True:
|
||||||
|
try:
|
||||||
for pixel in range(LEDS_PER_PIXEL):
|
for pixel in range(LEDS_PER_PIXEL):
|
||||||
update_led_strip(tuple(eval(rgb_values_list[0])), pixel, strip)
|
update_led_strip(tuple(eval(rgb_values_list[0])), pixel, strip)
|
||||||
|
|
||||||
|
@ -94,3 +95,6 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
for pixel in range(LEDS_PER_PIXEL*5, LEDS_PER_PIXEL*6):
|
for pixel in range(LEDS_PER_PIXEL*5, LEDS_PER_PIXEL*6):
|
||||||
update_led_strip(tuple(eval(rgb_values_list[5])), pixel, strip)
|
update_led_strip(tuple(eval(rgb_values_list[5])), pixel, strip)
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
for led in LED_COUNT:
|
||||||
|
update_led_strip((0, 0, 0), led, strip)
|
Loading…
Reference in New Issue