From 93ce452ad7a83a3ce6b6f8358b77b119e648a5be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 9 Nov 2021 19:05:02 +0100 Subject: [PATCH] Update main.py --- main.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 3e102b0..f414ac5 100644 --- a/main.py +++ b/main.py @@ -117,15 +117,15 @@ if __name__ == '__main__': blink(strip, Color(255,0,0), Color(255,255,255)) else: print(idle_mode) - if int(idle_mode) == '1': + if idle_mode == '1': rainbowCycle(strip) - elif int(idle_mode) == '2': + elif idle_mode == '2': setColor(strip, Color(255,0,0)) - elif int(idle_mode) == '3': + elif idle_mode == '3': setColor(strip, Color(0,255,0)) - elif int(idle_mode) == '4': + elif idle_mode == '4': setColor(strip, Color(0,0,255)) - elif int(idle_mode) == '5': + elif idle_mode == '5': setColor(strip, Color(125,245,255)) else: blink(strip, Color(255,0,0), Color(0,0,0))