Skip to content

Added support for nrf52840 RGB Matrix Featherwing #24

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
Oct 3, 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
25 changes: 20 additions & 5 deletions adafruit_matrixportal/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,27 @@ def __init__(self, *, width=64, height=32, bit_depth=2, alt_addr_pins=None):
latch_pin = board.MTX_LAT
oe_pin = board.MTX_OE
elif "Feather" in os.uname().machine:
print("Feather Detected")
# Feather Style Board
if 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
if "nrf52" in os.uname().sysname:
# nrf52840 Style Feather
addr_pins = [board.D11, board.D5, board.D13]
if height > 16:
addr_pins.append(board.D9)
rgb_pins = [board.D6, board.A5, board.A1, board.A0, board.A4, board.D11]
clock_pin = board.D12
else:
addr_pins = [board.A5, board.A4, board.A3]
if 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:
Expand Down