parent
d8aefb1f1f
commit
49c1d7c6a9
|
@ -64,8 +64,6 @@ def update_led_strip(rgb_values, pixel, strip):
|
||||||
def on_message(mqttc, obj, msg):
|
def on_message(mqttc, obj, msg):
|
||||||
rgb_values_list = eval(msg.payload.decode())
|
rgb_values_list = eval(msg.payload.decode())
|
||||||
|
|
||||||
time.sleep(1)
|
|
||||||
|
|
||||||
print(tuple(eval(rgb_values_list[0])))
|
print(tuple(eval(rgb_values_list[0])))
|
||||||
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)
|
||||||
|
|
Loading…
Reference in New Issue