Skip to content

Commit

Permalink
Fix code, image, add control in test
Browse files Browse the repository at this point in the history
  • Loading branch information
raulvera59 committed Mar 17, 2020
1 parent d078d8c commit 8913035
Show file tree
Hide file tree
Showing 3 changed files with 251 additions and 243 deletions.
4 changes: 2 additions & 2 deletions components/led_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self):
self.image_num_rows = logo_num_rows
self.current_image_row = 0
# Move the image after this number of ticks
self.animation_period = 3
self.animation_period = 20
self.current_animation_cycle = 0

def setup(self) -> None:
Expand Down Expand Up @@ -74,7 +74,7 @@ def load_row(self, image_row) -> None:
third_image_row = (
second_image_row + self.IMAGE_ROWS_BETWEEN_LED_ROWS
) % self.image_num_rows
for i in len(self.image[image_row]):
for i in range(0, len(self.image[image_row])):
self.led_raster[0][i].setRGB(
self.image[image_row][i][0],
self.image[image_row][i][1],
Expand Down
Loading

0 comments on commit 8913035

Please sign in to comment.