LVGL is highly configurable, with the
configuration of the library being done in the lv_conf.h file. There are
several fields in this file that must be update so that the library works properly.
These fields are:
- MY_DISP_HOR_RES: Used to set the horizontal size of the internal color
buffer, dependent on the display being used
- MY_DISP_VER_RES: Used to set the vertical size of the internal color buffer,
dependent on the display being used
- LV_COLOR_DEPTH: Used to set the color format for the color buffer, dependent
on the display being used
- LV_MEM_SIZE: Used to set the amount of dynamic memory to use for storing
objects and animations, typically 48 kB
- LV_DRAW_COMPLEX: Used to enable complex shapes, such as rounded corners,
circles, and arcs
There are, also, several lv_conf.h sections that can be adjusted to reduce the
applications memory footprint. These fields are:
- Fonts: Disable unused fonts to reduce the required flash size
- Widgets: Disable unused widgets/demos to reduce the required flash size
- Demos: Disable unused demos to reduce the required flash size