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):
|
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)
|
||||||
|
|
Loading…
Reference in New Issue