parent
9f4c4c6b2b
commit
81dd92a553
|
@ -65,6 +65,7 @@ def update_led_strip(rgb_values, pixel, strip):
|
|||
|
||||
def on_message(mqttc, obj, msg):
|
||||
rgb_values_list = eval(msg.payload.decode())
|
||||
print(rgb_values_list)
|
||||
|
||||
for pixel in range(LEDS_PER_PIXEL):
|
||||
update_led_strip(tuple(eval(rgb_values_list[0])), pixel, strip)
|
||||
|
|
Loading…
Reference in New Issue