parent
2eef85227a
commit
80292c843d
|
@ -63,11 +63,11 @@ def update_led_strip(rgb_values, pixel, strip):
|
|||
|
||||
def on_message(mqttc, obj, msg):
|
||||
rgb_values_list = msg.payload.decode()
|
||||
|
||||
print(*ast.literal_eval(rgb_values_list))
|
||||
rgb_values_list *ast.literal_eval(rgb_values_list)
|
||||
|
||||
print(rgb_values_list[0])
|
||||
|
||||
|
||||
time.sleep(1)
|
||||
|
||||
# print(list(*rgb_values_list[0]))
|
||||
|
|
Loading…
Reference in New Issue