8000 Exceptions in adafruit_matrixportal.matrix.Matrix constructor crash MatrixPortal M4 · Issue #9674 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content
Exceptions in adafruit_matrixportal.matrix.Matrix constructor crash MatrixPortal M4 #9674
Open
@danielmader

Description

@danielmader

CircuitPython version

Adafruit CircuitPython 9.1.4 on 2024-09-17; Adafruit Matrix Portal M4 with samd51j19

Code/REPL

from adafruit_matrixportal.matrix import Matrix

# default pinout:
# R1 - G1
# B1 - GND
# R2 - G2
# B2 - B
# A - D
# C - E
# CLK - LAT
# /OE - E
matrix = Matrix(width=64, height=32)

# alternate pinout:
# R1 - G1
# B1 - GND
# R2 - G2
# B2 - E
# A - B
# C - D
# CLK - LAT
# /OE - GND
addr_pins = [board.MTX_ADDRA, board.MTX_ADDRD, board.MTX_ADDRC, board.MTX_ADDRE, board.MTX_ADDRB] 
matrix = Matrix(width=64, height=32, alt_addr_pins=addr_pins)   
display = matrix.display

Behavior

The used RGB matrix from WaveShare has a different pinout. Changing the relevant pins using a list for alt_addr_pins results in a hard crash:

Adafruit CircuitPython 9.1.4 on 2024-09-17; Adafruit Matrix Portal M4 with samd51j19
>>> 
soft reboot

Auto-reload is off.
Running in safe mode! Not running saved code.

You are in safe mode because:
CircuitPython core code crashed hard. Whoops!
Hard fault: memory access or instruction error.
Please file an issue with your program at github.com/adafruit/circuitpython/issues.
Press reset to exit safe mode.

Description

No response

Additional information

No response

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0