parent
071d69a3b0
commit
1dbb818ed9
2
main.py
2
main.py
|
@ -59,6 +59,7 @@ def fade_in_animation(strip, mode, color):
|
||||||
strip.setPixelColor(i, Color(randint(0, 255), randint(0, 255), randint(0, 255)))
|
strip.setPixelColor(i, Color(randint(0, 255), randint(0, 255), randint(0, 255)))
|
||||||
strip.show()
|
strip.show()
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
debug_print("fade in done")
|
||||||
|
|
||||||
def wheel(pos):
|
def wheel(pos):
|
||||||
if pos < 85:
|
if pos < 85:
|
||||||
|
@ -128,6 +129,7 @@ if __name__ == '__main__':
|
||||||
if topic == "server-rack-led/power":
|
if topic == "server-rack-led/power":
|
||||||
global power
|
global power
|
||||||
power = payload
|
power = payload
|
||||||
|
global singleExecute
|
||||||
singleExecute = True
|
singleExecute = True
|
||||||
|
|
||||||
elif topic == "server-rack-led/rgb":
|
elif topic == "server-rack-led/rgb":
|
||||||
|
|
Loading…
Reference in New Issue