Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions adafruit_matrixportal/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def __init__(
alt_addr_pins=None,
color_order="RGB",
serpentine=True,
tile_rows=1
tile_rows=1,
rotation=0,
):

panel_height = height // tile_rows
Expand Down Expand Up @@ -177,7 +178,7 @@ def __init__(
latch_pin=latch_pin,
output_enable_pin=oe_pin,
)
self.display = framebufferio.FramebufferDisplay(matrix)
self.display = framebufferio.FramebufferDisplay(matrix, rotation=rotation)
except TypeError:
if tile_rows > 1:
raise RuntimeError(
Expand Down
2 changes: 2 additions & 0 deletions adafruit_matrixportal/matrixportal.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def __init__(
height=32,
serpentine=True,
tile_rows=1,
rotation=0,
):

graphics = Graphics(
Expand All @@ -102,6 +103,7 @@ def __init__(
color_order=color_order,
serpentine=serpentine,
tile_rows=tile_rows,
rotation=rotation,
debug=debug,
)

Expand Down