Skip to content

Commit

Permalink
patch invert odd rows
Browse files Browse the repository at this point in the history
  • Loading branch information
juanvallejo committed Feb 28, 2016
1 parent b8ab03d commit 0e23016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion led_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def do_light(self, matrix):
# Set the LED color buffer value.
#i/8%2==1
if (i / 8) % 2 == 1:
matrix_val = matrix[8 - (i % 8) + (i / 8)]
matrix_val = matrix[8 - (i % 8) + int(i / 8) * 8]
else:
matrix_val = matrix[i]
if matrix_val == 1:
Expand Down

0 comments on commit 0e23016

Please sign in to comment.