removed useless code for rainbow fade in
Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>master
parent
11e8ce8800
commit
071d69a3b0
11
main.py
11
main.py
|
@ -34,14 +34,9 @@ def debug_print(message: str):
|
|||
|
||||
def fade_in_animation(strip, mode, color):
|
||||
if mode == 0:
|
||||
for j in range(256*10):
|
||||
if mode > 0:
|
||||
break
|
||||
elif power == "False":
|
||||
break
|
||||
for i in range(strip.numPixels()):
|
||||
strip.setPixelColor(i, wheel((int(i * 256 / strip.numPixels()) + j) & 255))
|
||||
strip.show()
|
||||
for i in range(strip.numPixels()):
|
||||
strip.setPixelColor(i, wheel((int(i * 256 / strip.numPixels()) + j) & 255))
|
||||
strip.show()
|
||||
elif mode == 1:
|
||||
for i in range(strip.numPixels()):
|
||||
strip.setPixelColor(i, color)
|
||||
|
|
Loading…
Reference in New Issue