parent
69774c4603
commit
77e5bb8213
|
@ -63,6 +63,7 @@ def update_led_strip(rgb_values, pixel, strip):
|
|||
print("Updated pixel "+str(pixel)+" with "+str(rgb_values))
|
||||
|
||||
def on_message(mqttc, obj, msg):
|
||||
print(msg.payload)
|
||||
if msg.topic == "tube-"+wlan_mac_address+"/p1":
|
||||
for pixel in range(LEDS_PER_PIXEL):
|
||||
update_led_strip(msg.payload, pixel, strip)
|
||||
|
|
Loading…
Reference in New Issue