LVGL Example Arduino Config files #1
Replies: 4 comments 4 replies
-
WOW, thanks VollWombat! I would have replied sooner, but my son and his wife just brought round their firstborn, our day-old grandson. Meanwhile, back in Git-land: Thanks again, |
Beta Was this translation helpful? Give feedback.
-
Hi Westcott and congratulations on your grandchild! :-) You're totally right, I had the same issue and while the support couldn't give me a clear answer to this, I just noticed that the ESP_IO_Expander library they send me had indeed 2 files more, related to exactly that chip. Put those two files into Documents\Arduino\libraries\ESP32_IO_Expander\src\chip. Then you should be good to go. Regarding the arduino demo, I think they added it later (maybe they made it for me when I contacted them and added it afterwards 😅). Its now included in the "Sample demo" download on the ESP32-S3-Touch-LCD-4.3 Wiki page |
Beta Was this translation helpful? Give feedback.
-
Congratulations on being a grandfather! I don't know if you can help me, when I run the INO file, I receive this error message. Compilation error: 'Arduino_ESP32RGBPanel' does not name a type; did you mean 'Arduino_ESP32S2PAR8Q'? Thank you, |
Beta Was this translation helpful? Give feedback.
-
I finally managed to get to get this working with Arduino IDE. I followed the steps in Vaveshare wiki. It was just a matter of getting the right files in the right place. Note the porting example contains the correct ESP_Panel_Conf.h and lv_conf.h. |
Beta Was this translation helpful? Give feedback.
-
Hey, I found this project via Google and thought I could add something to it.
So, I tried to get the provided demos (The "Sample demos" link from here) to run and had some issues with it.
So for documentation, those are the steps I did to get the sample "lvgl_porting" from the package above to run (mostly based on the Waveshare Wiki I linked above):
Adding the espressif arduino esp32 repo to Arduino IDE:
File -> Preferences -> Additional Boards Managers URLs -> Add "https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json")
Installing the required libraries:
Afterwards, you should be able to select the Board via Tools -> Board -> esp32 -> ESP32S3 Dev Module.
Now that was all no really big deal, but I found no info on how to configure the ESP32_Display_Panel and lvgl library. They have default config files, but the samples didn't run with them. So I wrote back and forth with the support about this issue (and some others I had initially), where after a few weeks I got the sample and the libraries they used, including their configuration files.
ESP_Panel_Conf.txt
lv_conf.txt
Those files need to be renamed (remove the .txt at the end and replace it with .h) and put them into My Documents\Arduino\libraries\ directory (directly there, not in the individual folders of the packages itself).
If you don't want to use these files, read further below where I listed all the changes to the default config file.
Also, for those sample, at least the lvgl demos are needed. In order to use them, you need to copy the folder \Arduino\libraries\lvgl\demos to \Arduino\libraries\lvgl**src**demos.
Better safe than sorry, you can also copy the examples-folder in from the same parent directory to the src-folder.
If you don't want to use my files, you can do the following:
Copy and rename the file "Documents\Arduino\libraries\lvgl\lv_conf_template.h" to Documents\Arduino\libraries\lv_conf.h
Edit the file and replace the following lines:
#if 0 /*Set it to "1" to enable content*/
becomes#if 1 /*Set it to "1" to enable content*/
for the following lines, just search for the variable name (the one that comes after #define) and replace the value after it with the value mentioned here:
Next for ESP32 Display Panel, copy and rename the file 'Documents\Arduino\libraries\ESP32_Display_Panel\ESP_Panel_Conf_Template.h' to 'Documents\Arduino\libraries\ESP_Panel_Conf.h'
and make the changes just like in lv_conf.h with the values used below:
And I think that should be it. Afterwards the lvgl_porting.ino demo should run. Hope that helps someone!
Beta Was this translation helpful? Give feedback.
All reactions