parent
5aed692f55
commit
c445242819
1
main.py
1
main.py
|
@ -66,6 +66,7 @@ def strobe(strip, color):
|
||||||
for i in range(strip.numPixels()):
|
for i in range(strip.numPixels()):
|
||||||
strip.setPixelColor(i, Color(0, 0, 0))
|
strip.setPixelColor(i, Color(0, 0, 0))
|
||||||
strip.show()
|
strip.show()
|
||||||
|
time.sleep(float(0.01))
|
||||||
|
|
||||||
def mqtt_on_connect(client, userdata, flags, rc):
|
def mqtt_on_connect(client, userdata, flags, rc):
|
||||||
client.subscribe("server-rack-led/power")
|
client.subscribe("server-rack-led/power")
|
||||||
|
|
Loading…
Reference in New Issue