SDAA158 December   2025 MSPM33C321A

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Overview
    1. 1.1 LVGL Project Setup
    2. 1.2 Configuration
    3. 1.3 Initialization
    4. 1.4 LVGL Output
    5. 1.5 LVGL Input
    6. 1.6 LVGL Update
  5. 2LVGL Example
    1. 2.1 Hardware Connections
    2. 2.2 Software
    3. 2.3 LVGL Example Summary
  6. 3Summary
  7. 4Revision History

Configuration

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