This is the documentation for the latest (main) development branch. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

TFT_LCD_LVGL

Overview

This application is a demonstration of LVGL functionalities using the WM IoT SDK. It illustrates how to initialize the TFT LCD device and create an LVGL DEMO Task for the initialization of the LVGL module, showcasing various native LVGL demo scenarios such as: Widgets, Music Player, Benchmark, Stress etc. The program interfaces with the TFT LCD module via the SDIO (SPI mode) and utilizes DMA/CPU Polling for communication. The hardware configurations are detailed in the Device Table, which encompasses pin definitions, frequency settings for SDIO (SPI mode), and additional pin configurations for the LCD device.

Requirements

  1. TFT LCD Display Requirement:

    • Manufacturer: New Vision Microelectronics Inc.

    • Model:NV3041A

  2. Pin Connections:

GPIO_NUM Pin Number Connection Description NV3041A PIN
WM_GPIO_NUM_22 PB6 CLK 11
WM_GPIO_NUM_23 PB7 MOSI 13
WM_GPIO_NUM_27 PB11 CS 9
WM_GPIO_NUM_13 PA13 RESET 15
WM_GPIO_NUM_32 PA16 LED 36
WM_GPIO_NUM_2 PA2 DCX 10
WM_GPIO_NUM_41 PB25 TE 8

Building and flashing

Example Location:examples\tft_lcd\tft_lcd_lvgl

The selection of demo scenarios is made in the lv_confs.h header file of the LVGL component by enabling the corresponding macro definition switch, for example: enabling LV_USE_DEMO_MUSIC. It should be noted that to avoid conflicts, two or more demo scenario macro definition switches must not be enabled simultaneously.

compile, burn, and more, see: get started

Running result

Successfully running will output the following logs

I/lcd_example     [0.430] LCD x_resolution = 480
I/lcd_example     [0.430] LCD y_resolution = 272
I/lcd_example     [0.432] LCD rotation = 0