LVGL: lv_conf.h

Jorgen
Posts: 55
Joined: Fri Dec 09, 2022 11:39 am

LVGL: lv_conf.h

Postby Jorgen » Wed Nov 27, 2024 4:01 pm

I am setting up a project with an 8-bit parallel TFT display using the LCD component of the ESP-IDF and the LVGL managed component.
Processor: ESP32-S3, ESP-IDF version 5.3.1.
I went to the ESP Component Registry. I selected the LVGL/LVGL v9.2.2. and clicked Install. The lvgl becomes a managed component, which I am supposed not to touch or change.
Reading the LVGL documentation, I should have a lv_conf.h file setting various parameters. There is a lv_conf_template.h file within the LVGL managed component.
I assume, I shall copy the lv_conf_template.h to a lv_conf.h file, change the "if 0" to "if 1", but where shall I save it?
According to the LVGL documentation it shall be saved next to the LVGL folder. What does that mean in this case, remembering I am supposed not to touch the managed components?
Please help clarifying this.
Regards,
Jorgen
PS. There is no lv_conf.h file within the managed LVGL component, only the lv_conf_template.h is there.

igormoo
Posts: 11
Joined: Thu Nov 28, 2024 12:54 am

Re: LVGL: lv_conf.h

Postby igormoo » Thu Nov 28, 2024 1:08 am

You define LV_LVGL_H_INCLUDE_SIMPLE and that changes globally where the `lv_conf.h` is searched to the "local" include like this:

#include "lv_conf.h"

This means that it will be searched in your personal include path. I've put mine in "include/gui" path and added this path to my include paths collection

Who is online

Users browsing this forum: No registered users and 76 guests