Skip to content

Updated for MatrixPortal S3 #89

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 2 commits into from
Jun 7, 2023
Merged
Show file tree
Hide file tree
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
7 changes: 5 additions & 2 deletions adafruit_matrixportal/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,11 @@ def __init__(
if -1 in (red_index, green_index, blue_index):
raise ValueError("color_order should contain R, G, and B")

if "Matrix Portal M4" in os.uname().machine:
# MatrixPortal M4 Board
if (
"Adafruit Matrix Portal" in os.uname().machine
or "Adafruit MatrixPortal" in os.uname().machine
):
# MatrixPortal Board
addr_pins = [board.MTX_ADDRA, board.MTX_ADDRB, board.MTX_ADDRC]
if panel_height > 16:
addr_pins.append(board.MTX_ADDRD)
Expand Down
7 changes: 6 additions & 1 deletion adafruit_matrixportal/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,15 @@

"""

import os
import gc
import neopixel
from adafruit_portalbase.network import NetworkBase
from adafruit_portalbase.wifi_coprocessor import WiFi

if os.uname().sysname == "samd51":
from adafruit_portalbase.wifi_coprocessor import WiFi
else:
from adafruit_portalbase.wifi_esp32s2 import WiFi

__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_MatrixPortal.git"
Expand Down
11 changes: 10 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,16 @@
# Uncomment the below if you use native CircuitPython modules such as
# digitalio, micropython and busio. List the modules you use. Without it, the
# autodoc module docs will fail to generate with a warning.
autodoc_mock_imports = ["supervisor", "rtc", "rgbmatrix", "framebufferio", "secrets"]
autodoc_mock_imports = [
"supervisor",
"rtc",
"rgbmatrix",
"framebufferio",
"secrets",
"wifi",
"ssl",
"socketpool",
]


intersphinx_mapping = {
Expand Down