esp-arduino-libs / ESP32_Display_Panel

Arduino library of driving display panel for the ESP SoCs
Apache License 2.0
57 stars 13 forks source link

PanelTest.ino --> Compilation error: 'ESP_Panel' does not name a type (new version, same issue) #57

Closed wavejaco closed 1 week ago

wavejaco commented 1 week ago

I am experiencing the exact same issue that @lboue had in Issue 26, although with ESP32_Display_Panel at version 0.1.4 and ESP32_IO_Expander at version 0.0.2.

The suggestion in that issue of setting the macro ESP_PANEL_USE_CUSTOM_BOARD to 1 in the file _ESP_Panel_BoardCustom.h didn't fix the problem. Clearly something else is wrong. What is the root cause of this compilation error?

Any help will be greatly appreciated, thanks.

wavejaco commented 1 week ago

Fixed it - I accidentally changed the wrong _ESP_Panel_BoardCustom.h file - it was the file in the installed library that I changed instead of the file in the project directory.

Lzw655 commented 1 week ago

Great! And I am thinking about outputting some messages to show the path of the files like ESP_Panel_Board_Custom.h.

wavejaco commented 1 week ago

Great! And I am thinking about outputting some messages to show the path of the files like _ESP_Panel_BoardCustom.h.

That is a good idea and should avoid problems such as the one I encountered. In hindsight it seems obvious which is the correct file to change, but some messages showing the path of the files should help to avoid this issue in the future.