I now read this (link Arduino — LVGL documentation)
Configure LVGL
LVGL has its own configuration file called lv_conf.h. When LVGL is installed, follow these configuration steps:
- Go to the directory of the installed Arduino libraries
- Go to
lvgland copylv_conf_template.haslv_conf.hinto the Arduino Libraries directory next to thelvgllibrary folder. - Open
lv_conf.hand change the first#if 0to#if 1to enable the content of the file - Set the color depth of you display in
LV_COLOR_DEPTH - Set
LV_TICK_CUSTOM 1