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_DMA

Overview

This application serves as a comprehensive demonstration of the TFT LCD display functionality using the WM IoT SDK. It illustrates the process of initializing the TFT LCD device and executing a range of display operations. These operations include a continuous blue background refresh, displaying pre-stored images from flash memory, and rotating the screen on the X and Y axes. The program interfaces with the TFT LCD module via the SDIO (SPI mode) and utilizes DMA 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_dma

compile, burn, and more, see: get started

Running result

Successfully running will output the following logs

I/lcd_example     [0.430] DEMO:block_size=65280
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

I/lcd_example     [0.432] wm_lcd_demo show blue background
I/lcd_example     [3.464] wm_lcd_demo show image(w=480, h=272)
I/lcd_example     [5.518] wm_lcd_demo show blue background
I/lcd_example     [7.550] wm_lcd_demo show image(w=480, h=272)
I/lcd_example     [9.604] wm_lcd_demo show blue background
I/lcd_example     [11.636] wm_lcd_demo show image(w=480, h=272)
I/lcd_example     [13.690] wm_lcd_demo show blue background
I/lcd_example     [15.722] wm_lcd_demo show image(w=480, h=272)
I/lcd_example     [17.776] wm_lcd_demo show blue background