Hello,
Hope this message finds you well.
When I go to compile the first sketch “1.8 – Testing the Display”, after a couple of minutes into the process I get this error:
c:\Users\Piero\Documents\Arduino\libraries\lvgl\src\examples\styles\lv_example_style_14.c:1:10: fatal error: ../../src/themes/lv_theme_private.h: No such file or directory
1 | #include “../../src/themes/lv_theme_private.h”
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: exit status 1
I have a Windows 11 PC.
I followed the instructions, downloaded and copied the two .h files and moved the “demos” and “examples” files into SRC
I checked the file “lv_example_style_14.c” which has the following include directives:
#include “../../src/themes/lv_theme_private.h”
#include “../lv_examples.h”
and they are where they are supposed to be.
“lv_example_style_14.c”, alsong with the other “lv_example_style_xx.c” files is located inside
..Documents\Arduino\libraries\lvgl\src\examples\styles\
If I go back one level, I can see “lv_examples.h”
then inside ../src/themes I see “lv_theme_private.h”
Frankly I’m lost… Would someone help please?
Kind regads,
Piero
Hi.
what version of the ebook are you following?
The latest version is 1.4. Make sure that’s the version you’re following at the moment.
when setting up the lvgl library, don’t move the demos folder.
Let me know if this solves the issue.
Regards,
Sara
Regards
Sara
Hi Sara,
Thank you for your prompt reply.
Yes I was using an older version of the book. I downloaded ver1.4
I uninstalled and reinstalled the libraries, and downloaded the two header files again.
The only difference is in the TFT_eSPI library. The second time I installed ver 2.5.34, as shown on the book, instead of the most recent ver 2.5.43
Now I can compile the sketch. The only issue is that the screen is black.
I tried to compile and upload the next sketch (touchscreen test) and again, I was able to burn the program, but I get a black screen. I reset, disconnected, reconnected the board… but no joy.
I’ve never used these “cheap yellow displays” before, so I’m not familiar with them.
Did any of you experience the same issue?
Thank you.
P.
Hi.
What is the version of your boarad? Does it have two USB ports?
If that’s the case, that’s not the recommended board.
Either way, you can probably make it work with just a few changes.
See this : https://rntlab.com/question/colors-inverted-on-cyb-esp32-display/
Let me know if you need further help.
Regards,
Sara
Hi Sara,
sorry but I’ve been busy. The board’s name is ESP32-2432S028 , exactly this one:
I’ll try to get around it this weekend.
Thank you for your time Sara
Piero
Hi.
That’s the recommended board, but it’s a newer version with two USB ports that seems to work slightly differently.
Try to invert the colors as explained in this discussion: https://rntlab.com/question/colors-inverted-on-cyb-esp32-display/
Let me know if that works,
I’ll try to order a similar display to experiment with.
Regards,
Sara