Skip to content

adding RP2040 #75

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
Apr 15, 2021
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
22 changes: 20 additions & 2 deletions adafruit_matrixportal/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,24 @@ def __init__(
addr_pins.append(board.D9)
rgb_pins = [board.D6, board.A5, board.A1, board.A0, board.A4, board.D11]
clock_pin = board.D12
latch_pin = board.RX
oe_pin = board.TX
elif "rp2040" in os.uname().sysname:
# rp2040 Style Feather
addr_pins = [board.D25, board.D24, board.A3]
if panel_height > 16:
addr_pins.append(board.A2)
rgb_pins = [
board.D6,
board.D5,
board.D9,
board.D11,
board.D10,
board.D12,
]
clock_pin = board.D13
latch_pin = board.D0
oe_pin = board.D1
else:
addr_pins = [board.A5, board.A4, board.A3]
if panel_height > 16:
Expand All @@ -120,8 +138,8 @@ def __init__(
board.D12,
]
clock_pin = board.D13
latch_pin = board.D0
oe_pin = board.D1
latch_pin = board.D0
oe_pin = board.D1
else:
# Metro/Grand Central Style Board
if alt_addr_pins is None and height <= 16:
Expand Down