parent
b358b9381b
commit
2eef85227a
|
@ -64,10 +64,12 @@ def update_led_strip(rgb_values, pixel, strip):
|
|||
def on_message(mqttc, obj, msg):
|
||||
rgb_values_list = msg.payload.decode()
|
||||
|
||||
print(rgb_values_list)
|
||||
print(*ast.literal_eval(rgb_values_list))
|
||||
|
||||
print(rgb_values_list[0])
|
||||
|
||||
time.sleep(1)
|
||||
|
||||
# print(list(*rgb_values_list[0]))
|
||||
# for pixel in range(LEDS_PER_PIXEL):
|
||||
# update_led_strip(tuple(*rgb_values_list[0]), pixel, strip)
|
||||
|
|
Loading…
Reference in New Issue