Skip to content

Commit a093fc6

Browse files
authored
Merge pull request #32 from dastels/master
Accept width & height to pass through to the Graphics constructor.
2 parents 2b4cce1 + e8deaf7 commit a093fc6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

adafruit_matrixportal/matrixportal.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,17 @@ def __init__(
8080
bit_depth=2,
8181
alt_addr_pins=None,
8282
color_order="RGB",
83-
debug=False
83+
debug=False,
84+
width=64,
85+
height=32,
8486
):
8587

8688
self._debug = debug
8789
self.graphics = Graphics(
8890
default_bg=default_bg,
8991
bit_depth=bit_depth,
90-
width=64,
91-
height=32,
92+
width=width,
93+
height=height,
9294
alt_addr_pins=alt_addr_pins,
9395
color_order=color_order,
9496
debug=debug,

0 commit comments

Comments
 (0)