Skip to content

Commit bb6607f

Browse files
authored
Merge pull request #10 from makermelissa/master
Added bit_depth parameter
2 parents 970df94 + 923fdc1 commit bb6607f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

adafruit_matrixportal/matrixportal.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class MatrixPortal:
5656
:param esp: A passed ESP32 object, Can be used in cases where the ESP32 chip needs to be used
5757
before calling the pyportal class. Defaults to ``None``.
5858
:param busio.SPI external_spi: A previously declared spi object. Defaults to ``None``.
59+
:param int bit_depth: The number of bits per color channel. Defaults to 2.
5960
:param debug: Turn on debug print outs. Defaults to False.
6061
6162
"""
@@ -73,11 +74,12 @@ def __init__(
7374
json_transform=None,
7475
esp=None,
7576
external_spi=None,
77+
bit_depth=2,
7678
debug=False
7779
):
7880

7981
self._debug = debug
80-
matrix = Matrix(bit_depth=2, width=64, height=32)
82+
matrix = Matrix(bit_depth=bit_depth, width=64, height=32)
8183
self.display = matrix.display
8284

8385
self._network = Network(

0 commit comments

Comments
 (0)