Skip to content

Commit

Permalink
- removed the led order fix, it is fixed now in the fpga
Browse files Browse the repository at this point in the history
  • Loading branch information
cmetz committed Mar 28, 2018
1 parent a51e6dc commit e1d5378
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions matrixio_hal/everloop.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def render(self):
for i in range(self.size):
index = (i - self.rotate_offset) % self.size
ev_index = (self.start + i) % EVERLOOP_SIZE
_cpp_ev_image.leds[ev_index].red = self.leds[index].green
_cpp_ev_image.leds[ev_index].green = self.leds[index].red
_cpp_ev_image.leds[ev_index].red = self.leds[index].red
_cpp_ev_image.leds[ev_index].green = self.leds[index].green
_cpp_ev_image.leds[ev_index].blue = self.leds[index].blue
_cpp_ev_image.leds[ev_index].white = self.leds[index].white
_cpp_ev.Write(_cpp_ev_image)
Expand All @@ -77,8 +77,8 @@ def set_led(index, color):
global _cpp_ev
global _cpp_ev_image
index = index % EVERLOOP_SIZE
_cpp_ev_image.leds[index].red = color.green
_cpp_ev_image.leds[index].green = color.red
_cpp_ev_image.leds[index].red = color.red
_cpp_ev_image.leds[index].green = color.green
_cpp_ev_image.leds[index].blue = color.blue
_cpp_ev_image.leds[index].white = color.white
_cpp_ev.Write(_cpp_ev_image)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name='python-matrixio-hal',
version='1.0.0',
version='1.0.1',
description='Python HAL for the Matrix Creator / Voice wrapping the C++ drivers',
author='cmetz',
author_email='christoph.metz@gulp.de',
Expand Down

0 comments on commit e1d5378

Please sign in to comment.