ES3C28P&ES3N28P 2.8-inch IPS ESP-IDF Example Program Guide

1. Software and Hardware Platform Description

Module: The 2.8-inch IPS ESP32-S3 display module features a 240x320 resolution and uses the ILI9341V display driver IC.

Module Main Control: ESP32-S3 chip, with a maximum main frequency of 240MHz, supporting 2.4G WIFI and Bluetooth.

ESP-IDF Version: 5.4.1

LVGL Version: 8.4.0

2. Pin Assignment Description

The 2.8-inch ESP32-S3 display module's main controller is the ESP32-S3 chip. The GPIO assignments for the onboard peripherals are shown in the table below:

ESP32-S3 Chip Pin Assignment Description

Onboard Device Onboard Device Pin ESP32-S3 Connected Pin Description
LCD TFT_CS IO10 LCD Chip Select Control Signal, active low.
TFT_RS IO46 LCD Command/Data Selection Control Signal. High level for data, low level for command.
TFT_SCK IO12 LCD SPI Bus Clock Signal.
TFT_MOSI IO11 LCD SPI Bus Write Data Signal.
TFT_MISO IO13 LCD SPI Bus Read Data Signal.
TFT_RST CHIP_PU LCD Reset Control Signal, active low reset (shared with ESP32-S3 chip reset).
CTP TFT_BL IO45 LCD Backlight Control Signal (high level to turn on backlight, low level to turn off backlight).
TP_SDA IO16 Capacitive Touch Screen I2C Bus Data Signal.
TP_SCL IO15 Capacitive Touch Screen I2C Bus Clock Signal.
TP_RST IO18 Capacitive Touch Screen Reset Control Signal, active low reset.
TP_INT IO17 Capacitive Touch Screen Interrupt Input Signal. When a touch event occurs, it inputs a low level.
LED RGB_INT IO42 Single-wire RGB three-color LED light. Can light up the red, green, and blue LEDs separately according to different signals.
SDCARD SD_CLK IO38 SD card SDIO Bus Clock Signal.
SD_CMD IO40 SD card SDIO Bus Command Signal.
SD_DO IO39 SD card SDIO Bus Data Signal.
SD_D1 IO41 SD card SDIO Bus Data Signals (DATA0~DATA3 four data lines).
SD_D2 IO48
SD_D3 IO47
BATTERY BAT_ADC IO9 Battery voltage ADC value acquisition signal.
Audio Audio_EN IO1 Audio output enable signal. Low level enables, high level disables.
I2S_MCK IO4 Audio I2S Bus Master Clock Signal.
I2S_SCK IO5 Audio I2S Bus Bit Clock Signal.
I2S_DO IO6 Audio I2S Bus Bit Output Data Signal.
I2S_LRC IO7 Audio I2S Bus Left/Right Channel Selection Signal. High level: right channel; low level: left channel.
I2S_DI IO8 Audio I2S Bus Bit Input Data Signal.
KEY BOOT_KEY IO0 Download mode selection key (press and hold this key while powering on, then release to enter download mode).
RESET_KEY EN ESP32-S3 reset key, active low reset (shared with LCD reset).
USB USB_N IO19 USB Bus Differential Signal Data Line Negative.
USB_P IO20 USB Bus Differential Signal Data Line Positive.
Serial Port TX0 IO43 ESP32-S3 Serial Port 0 Transmit Signal.
RX0 IO44 ESP32-S3 Serial Port 0 Receive Signal.
POWER TYPE-C_POWER / Type-C Power Interface, connects to 5V power.

3. Example Program Description

3.1. Setting up the ESP32 IDF Development Environment

For detailed instructions on setting up the ESP32 IDF development environment, please refer to the "Setting up the ESP-IDF Environment with VS Code" document in the resource package.

3.2. Using the Example Program

The example program is located in the "1-Example Programs_Demo\ESP32-IDF" directory within the resource package. See the figure below:

This example program already has LVGL ported, and the relevant program files have been modified. It can be used directly. For information on LVGL porting, please refer to the "ESP-IDF LVGL Porting Guide" document in the resource package. The steps for using the example program are as follows:

  1. Copy the entire example program folder "2.8inch_ESP32-S3_LVGL" to a path with an all-English name. Otherwise, the compilation will fail due to an inability to find the path.
  2. Open the VS Code software, click "File" -> "Open Folder", as shown in the figure below:
  3. Find the example program folder, select it, and then click the "Select Folder" button to open the example program, as shown in the figure below:
  4. Connect the ESP32 device to the computer. Select the correct COM port, chip, and download method in the VS Code bottom toolbar, then click the compile and flash button [▶️].
  5. After flashing is complete, you will see content displayed on the display module.

PDF preview unavailable. Download the PDF instead.

2.8inch ES3C28P ES3N28P ESP-IDF示例程序说明

Related Documents

Preview ES3C28P&ES3N28P 2.8寸 IPS Arduino 示例程序说明
本文件提供了ES3C28P和ES3N28P 2.8寸IPS Arduino显示模块的示例程序说明,包括软件和硬件平台说明、引脚分配说明以及详细的示例程序使用指南。
Preview ES3C28P&ES3N28P 2.8-inch IPS ESP32-S3 Display Module User Manual
This user manual provides a comprehensive guide to the ES3C28P&ES3N28P 2.8-inch IPS ESP32-S3 Display Module, covering resource description, software instructions, and detailed hardware explanations.
Preview E32R40T & E32N40T 4.0-inch Arduino Display Module Demo Instructions
Comprehensive guide for the E32R40T and E32N40T 4.0-inch ESP32-32E display modules, covering software setup, pin allocation, and detailed instructions for various Arduino demo programs, including WiFi, BLE, audio, and graphics.
Preview ESP32 Demo Instructions for MSP3525/MSP3526 LCD Modules
This guide provides detailed instructions for using demo programs with MSP3525 and MSP3526 LCD modules on the ESP32-WROOM-32E development board. It covers hardware setup, pin connections, software library installation, and running example code for embedded development.
Preview MSP2833 & MSP2834 2.8-inch IPS TFT SPI Display Module User Manual
User manual for the MSP2833 and MSP2834 2.8-inch IPS TFT SPI Display Module, detailing its interface, working principles, hardware description, example program usage, and common tool software.
Preview E32R32P & E32N32P 3.2-inch IPS ESP32-32E Display Module User Manual
Comprehensive user manual for the E32R32P & E32N32P 3.2-inch IPS ESP32-32E Display Module, covering resource descriptions, software instructions, and detailed hardware explanations.
Preview E32R35T & E32N35T ESP32-32E Demo Instructions
A comprehensive guide detailing the setup, library installation, and usage of example programs for the E32R35T and E32N35T 3.5-inch ESP32-32E display modules. It covers hardware description, pin allocation, and various example functionalities including graphics, WiFi, Bluetooth, audio, and touch calibration.
Preview E32R35T & E32N35T 3.5-inch ESP32-32E Display Module Quick Start Manual
A quick start guide for the E32R35T & E32N35T 3.5-inch ESP32-32E Display Module, covering powering on, driver installation, burning the bin file, and running the program.