diff --git a/main.py b/main.py index 558f73d..35ca627 100644 --- a/main.py +++ b/main.py @@ -212,6 +212,12 @@ if __name__ == '__main__': rainbowCycle(strip) elif mode == 1: + try: + r + except NameError: + r = "255" + g = "0" + b = "0" setColor(strip, Color(int(r), int(g), int(b))) time.sleep(1) else: