Skip to content

ESP32_Display_Panel error: 'ESP_Panel' does not name a type; did you mean 'ESP_PanelLcd'? ESP_Panel *panel = nullptr; #140

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
ArmandsSilitis opened this issue Dec 20, 2024 · 2 comments

Comments

@ArmandsSilitis
Copy link

Hello,

I can't fix the error error: 'ESP_Panel' does not name a type; did you mean 'ESP_PanelLcd'?
ESP_Panel *panel = nullptr;

I've done everything as instructed in the README and in the library. I still get this error. I tried the suggestions of others who had such an error, but it didn't help either. I admit that there is some nuance that prevents access to the previously defined "ESP_Panel"

I use Arduino IDE, tried all versions of both ESP_Panel_Library, arduini, and LVGL. I used the code examples "PanelTest"

The display itself is ST7262 with touch GT911. I've edited ESP_PAnel_Board_Custom.h, the code with the RGB example works and the screen works, but I want to add my UI from EEZ studio.

I hope there are suggestions where the problem could be.

Thanks in advance!

I added files Arduino_code and Set up for ESP_Panel_Board_Custom.

Arduino_code.txt
ESP_Panel_Board_Custom.txt

@Lzw655
Copy link
Collaborator

Lzw655 commented Dec 23, 2024

Hi @ArmandsSilitis,

I'm sorry that you encountered this issue. Could you please tell me which directory the attached ESP_Panel_Board_Custom.h file is located in? The library searches for this file in the following order: Current Project Directory > Arduino Library Directory > ESP32_Display_Panel Directory. Please check if there are other ESP_Panel_Board_Custom.h files in these locations in order.

@ArmandsSilitis
Copy link
Author

Hello,

Thanks for your involvement.

I managed to sort out the file order, it turns out that ESP_Panel_Board_Custom had to be placed in the src folder.

Although the screen didn't even work with this library, in the end I managed to run this screen with Arduino_GFX_Library, but I had to write a new driver library.

Thanks.

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