From 2e83511edaf9518537cb11587967ef2545ef790d Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Tue, 4 Dec 2018 16:49:28 +0100 Subject: :construction: Add blank LED's on start, and debug pixel-matrix --- src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Strip.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/compileAndRun') diff --git a/src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Strip.py b/src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Strip.py index 8feca0e..e4e355a 100644 --- a/src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Strip.py +++ b/src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Strip.py @@ -29,9 +29,17 @@ class Strip: self.strip.begin() + # Blank out all the LEDs + i = 0 + while True: + self.strip.setPixelColor(i, 0) + i += 1 + self.strip.show() + # Setup matrix + pixelMatrix = Matrix(self.segments, stripConf["matrix"]) try: - pixelMatrix = Matrix(self.segments, stripConf["matrix"]) + print("TESTING") except: print("Something went wrong while setting up your self-defined matrix.") -- cgit v1.2.3