From 35697c7a3d643d02640a00b0ea7f3c892e9ca2c6 Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Tue, 4 Dec 2018 16:52:21 +0100 Subject: :construction: Endless loop while turning off LEDs --- src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Strip.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src/compileAndRun/pythonSupportFiles') diff --git a/src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Strip.py b/src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Strip.py index e4e355a..b7519df 100644 --- a/src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Strip.py +++ b/src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Strip.py @@ -34,6 +34,7 @@ class Strip: while True: self.strip.setPixelColor(i, 0) i += 1 + if (i > self.LED_COUNT): break self.strip.show() # Setup matrix -- cgit v1.2.3