File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ class MatrixPortal:
56
56
:param esp: A passed ESP32 object, Can be used in cases where the ESP32 chip needs to be used
57
57
before calling the pyportal class. Defaults to ``None``.
58
58
: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.
59
60
:param debug: Turn on debug print outs. Defaults to False.
60
61
61
62
"""
@@ -73,11 +74,12 @@ def __init__(
73
74
json_transform = None ,
74
75
esp = None ,
75
76
external_spi = None ,
77
+ bit_depth = 2 ,
76
78
debug = False
77
79
):
78
80
79
81
self ._debug = debug
80
- matrix = Matrix (bit_depth = 2 , width = 64 , height = 32 )
82
+ matrix = Matrix (bit_depth = bit_depth , width = 64 , height = 32 )
81
83
self .display = matrix .display
82
84
83
85
self ._network = Network (
You can’t perform that action at this time.
0 commit comments