Skip to content

Compatibility with 96x48 Waveshare Matrix #95

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

Open
Swiftnesses opened this issue Dec 12, 2023 · 1 comment
Open

Compatibility with 96x48 Waveshare Matrix #95

Swiftnesses opened this issue Dec 12, 2023 · 1 comment

Comments

@Swiftnesses
Copy link

Good day,

I'm trying to use this with this matrix: https://www.waveshare.com/wiki/RGB-Matrix-P2.5-96x48-F

I can initialise with width=96, but using height=48 leads to error:

Traceback (most recent call last):
  File "code.py", line 35, in <module>
  File "adafruit_matrixportal/matrixportal.py", line 96, in __init__
  File "adafruit_matrixportal/graphics.py", line 67, in __init__
  File "adafruit_matrixportal/matrix.py", line 209, in __init__
RuntimeError: Failed to initialize RGB Matrix

Here is my test code:

matrixportal = MatrixPortal(
    url=DATA_SOURCE,
    json_path=DATA_LOCATION,
    status_neopixel=board.NEOPIXEL,
    width=96, 
    height=48
)

When the height of the display is set to 32/64, it works, but doesn't display properly.

@makermelissa
Copy link
Collaborator

Try 64 for the height. Generally matrix panel heights are a power of 2 (16, 32, 64, 128, etc.). They may just be showing 48 pixels of the 64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants