removed useless code for rainbow fade in

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

11
main.py
View File

@ -34,14 +34,9 @@ def debug_print(message: str):
def fade_in_animation(strip, mode, color): def fade_in_animation(strip, mode, color):
if mode == 0: if mode == 0:
for j in range(256*10): for i in range(strip.numPixels()):
if mode > 0: strip.setPixelColor(i, wheel((int(i * 256 / strip.numPixels()) + j) & 255))
break strip.show()
elif power == "False":
break
for i in range(strip.numPixels()):
strip.setPixelColor(i, wheel((int(i * 256 / strip.numPixels()) + j) & 255))
strip.show()
elif mode == 1: elif mode == 1:
for i in range(strip.numPixels()): for i in range(strip.numPixels()):
strip.setPixelColor(i, color) strip.setPixelColor(i, color)