Skip to content

Added bit_depth parameter #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 28, 2020
Merged
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
4 changes: 3 additions & 1 deletion adafruit_matrixportal/matrixportal.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class MatrixPortal:
:param esp: A passed ESP32 object, Can be used in cases where the ESP32 chip needs to be used
before calling the pyportal class. Defaults to ``None``.
:param busio.SPI external_spi: A previously declared spi object. Defaults to ``None``.
:param int bit_depth: The number of bits per color channel. Defaults to 2.
:param debug: Turn on debug print outs. Defaults to False.

"""
Expand All @@ -73,11 +74,12 @@ def __init__(
json_transform=None,
esp=None,
external_spi=None,
bit_depth=2,
debug=False
):

self._debug = debug
matrix = Matrix(bit_depth=2, width=64, height=32)
matrix = Matrix(bit_depth=bit_depth, width=64, height=32)
self.display = matrix.display

self._network = Network(
Expand Down