Skip to content
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

Unable to compile demo code or any code using PxMatrix library #348

Open
Vihang-Patil opened this issue Aug 31, 2024 · 1 comment
Open

Comments

@Vihang-Patil
Copy link

Hello,
I have downloaded the PxMatrix library 1.8.1 on my 2 laptops
I want to implement scrolling display on p10 led module using ARDUINO MEGA or ESP32 (not decided yet)
I am facing the following issues
Whether I select Arduino Mega or ESP 32, I am getting the same following error "Compilation error: 'PxMatrix' does not name a type"
I am attaching the RGB_SCROLLING_DISPLAY_P10.ino and error codes generated when Arduino Mega was selected as the board and When ESP32 was selected as a board.
I have installed this library on 2 laptops, but I am seeing the same issue
I have also tried doing a clean installation of Arduino IDE and I made sure to clean up existing directories in DOCUMENTS
arduino mega error.txt
ESP32 error.txt
folder, but still could not resolve it.

Kindly guide me, on what steps I need to take to correct this error.

RGB_SCROLLING_DISPLAY_P10.zip

@Wardy1279
Copy link

Hi, I'm working through some issues of my own with PxMatrix and my ESP32 at the moment but a quick look at your issue, I think PxMatrix display(32, 16, P_LAT, P_A, P_B, P_C, P_OE, P_CLK, P_R1, P_G1, P_B1);

should be

PxMATRIX display(32, 16, P_LAT, P_A, P_B, P_C, P_OE, P_CLK, P_R1, P_G1, P_B1);
(Note the capitalisation of MATRIX)
Also, in your PxMatrix.h file within the PxMatrix library folder, I had to add:
#include "hal/gpio_ll.h" ;

This got rid of the errors I was encountering although I am now working through other issues, such as my display only showing red and the bottom half not displaying unless I use display.fillScreen(255,0,0);

Fingers crossed this Github gets a bit more active and some of these issues are fixed to save the headscratching

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