SDAA158 December 2025 MSPM33C321A
The Light and Versatile Graphics Library (LVGL) is an open source graphics library that has been integrated into the MSP M33 Software Development Kit (SDK). This software solution creates a middleware layer that is hardware independent and highly customizable. With LVGL and the MSPM33, users can easily create embedded Graphical User Interfaces (GUI) that can be easily written for and ported to any combination of MSPM33 microcontroller and supported display. This application note describes several programming examples to illistrate how LVGL can be conmfigured to create GUI's for several End Equipment (EE). The objective is to help users understand GUI development with the LVGL library.
The code examples were tested on the MSPM33C321A, however, the examples can be easily adpated to run on any MSPM33 device. Most of the examples use either the Serial Peripheral Interface (SPI) or Quad Serial Peripheral Interface (QSPI) module to send the LVGL pixel data to the display, and the Inter-Integrated Cirtual (I2C), SPI, or QSPI, module to read touch input from the display. This requirement can be met by selecting a display with an integrated display driver supporting either SPI or QSPI, and an integrated touch driver that supports either I2C, SPI, or QSPI. An osciliscope with enough digital lines for decoding SPI/QSPI signals is essential for debugging.