• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

LVGL course – Module 1.8

Q&A Forum › Category: ESP32 › LVGL course – Module 1.8
0 Vote Up Vote Down
Piero Di Stefano asked 8 months ago

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

Question Tags: LVGL Course
5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 8 months ago

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

0 Vote Up Vote Down
Piero Di Stefano answered 8 months ago

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.

0 Vote Up Vote Down
Sara Santos Staff answered 8 months ago

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

0 Vote Up Vote Down
Piero Di Stefano answered 7 months ago

Hi Sara,

sorry but I’ve been busy. The board’s name is ESP32-2432S028 , exactly this one:

https://www.aliexpress.com/item/1005007654190509.html?spm=a2g0o.order_list.order_list_main.52.7e0b1802sl4u0f

I’ll try to get around it this weekend.

Thank you for your time Sara

Piero

0 Vote Up Vote Down
Sara Santos Staff answered 7 months ago

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

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.