added global

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-07-28 18:29:11 +02:00
parent 071d69a3b0
commit 1dbb818ed9
1 changed files with 2 additions and 0 deletions

View File

@ -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.show()
time.sleep(1)
debug_print("fade in done")
def wheel(pos):
if pos < 85:
@ -128,6 +129,7 @@ if __name__ == '__main__':
if topic == "server-rack-led/power":
global power
power = payload
global singleExecute
singleExecute = True
elif topic == "server-rack-led/rgb":