aboutsummaryrefslogtreecommitdiff
path: root/src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Strip.py
diff options
context:
space:
mode:
authorjakobst1n <jakob.stendahl@outlook.com>2018-12-04 16:19:02 +0000
committerjakobst1n <jakob.stendahl@outlook.com>2018-12-04 16:19:02 +0000
commitec3b7655b3b265cfe0086d7ad20ffa28cfa8629d (patch)
treea2e8eab6034a0beaa643c9bc2d30cc704c2ba9ea /src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Strip.py
parent7799a9bf44f6afdacb7742768d3da0cce0f06186 (diff)
downloadLuxcena-Neo-ec3b7655b3b265cfe0086d7ad20ffa28cfa8629d.tar.gz
Luxcena-Neo-ec3b7655b3b265cfe0086d7ad20ffa28cfa8629d.zip
:sparkles: Matrix is now setting itself up correctly
Have bypassed a try-catch for now
Diffstat (limited to 'src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Strip.py')
-rw-r--r--src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Strip.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Strip.py b/src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Strip.py
index e671d42..4856076 100644
--- a/src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Strip.py
+++ b/src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Strip.py
@@ -38,11 +38,11 @@ class Strip:
self.strip.show()
# Setup matrix
- pixelMatrix = Matrix(self.SEGMENTS, stripConf["matrix"])
- try:
- print("TESTING")
- except:
- print("Something went wrong while setting up your self-defined matrix.")
+ #try:
+ self.pixelMatrix = Matrix(self.SEGMENTS, stripConf["matrix"])
+ self.pixelMatrix.dump()
+ #except:
+ # print("Something went wrong while setting up your self-defined matrix.")
def show(self):
"""Update the display with the data from the LED buffer."""
@@ -76,7 +76,7 @@ class Strip:
"""Set a whole segment to the provided red, green and blue color.
Each color component should be a value from 0 to 255 (where 0 is the
lowest intensity and 255 is the highest intensity)."""
- for n in getSegmentRange(self.segments, segment):
+ for n in getSegmentRange(self.SEGMENTS, segment):
self.strip.setPixelColor(n, Color(red, green, blue, white))
def setBrightness(self, brightness):