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