File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ def __init__(
65
65
alt_addr_pins = None ,
66
66
color_order = "RGB" ,
67
67
serpentine = True ,
68
- tile_rows = 1
68
+ tile_rows = 1 ,
69
+ rotation = 0 ,
69
70
):
70
71
71
72
panel_height = height // tile_rows
@@ -177,7 +178,7 @@ def __init__(
177
178
latch_pin = latch_pin ,
178
179
output_enable_pin = oe_pin ,
179
180
)
180
- self .display = framebufferio .FramebufferDisplay (matrix )
181
+ self .display = framebufferio .FramebufferDisplay (matrix , rotation = rotation )
181
182
except TypeError :
182
183
if tile_rows > 1 :
183
184
raise RuntimeError (
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ def __init__(
91
91
height = 32 ,
92
92
serpentine = True ,
93
93
tile_rows = 1 ,
94
+ rotation = 0 ,
94
95
):
95
96
96
97
graphics = Graphics (
@@ -102,6 +103,7 @@ def __init__(
102
103
color_order = color_order ,
103
104
serpentine = serpentine ,
104
105
tile_rows = tile_rows ,
106
+ rotation = rotation ,
105
107
debug = debug ,
106
108
)
107
109
You can’t perform that action at this time.
0 commit comments