From 071d69a3b0fc83a1bb785bf947de216a2e099088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Thu, 28 Jul 2022 18:27:56 +0200 Subject: [PATCH] removed useless code for rainbow fade in MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- main.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/main.py b/main.py index fab114b..d2edcb5 100644 --- a/main.py +++ b/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)