aboutsummaryrefslogtreecommitdiff
path: root/src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Strip.py
diff options
context:
space:
mode:
authorJakob Stendahl <jakob.stendahl@outlook.com>2018-12-04 16:49:28 +0100
committerJakob Stendahl <jakob.stendahl@outlook.com>2018-12-04 16:49:28 +0100
commit2e83511edaf9518537cb11587967ef2545ef790d (patch)
tree9d3ec26ea642ff2a2dda994ae6c3663b736d3fb1 /src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Strip.py
parent7ec685de6e441af1f614bb9d18e25c047d21466b (diff)
downloadLuxcena-Neo-2e83511edaf9518537cb11587967ef2545ef790d.tar.gz
Luxcena-Neo-2e83511edaf9518537cb11587967ef2545ef790d.zip
:construction: Add blank LED's on start, and debug pixel-matrix
Diffstat (limited to 'src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Strip.py')
-rw-r--r--src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Strip.py10
1 files changed, 9 insertions, 1 deletions
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.")