Google Chat:---
+86-0755-88291180
sales@spotpear.com
dragon_manager@163.com
tech-support@spotpear.com
zhoujie@spotpear.com
WhatsApp:13246739196
WhatsApp:13424403025
| Parameter | Specification |
|---|---|
| Operating Voltage | 3.3V / 5V |
| Resolution | 240 × 240 pixels |
| Display Driver | ST7789S |
| Touch Chip | CST816D |
| Display Interface | 4-wire SPI |
| Touch Interface | I2C |
| Display Panel | IPS |
| Touch Type | Capacitive |
| Display Size | 27.72 × 27.72 (mm) |
| Pixel Size | 0.1155 × 0.1155 (mm) |
| Product Size | 40.2 × 40.2 (mm) |

| Function Pin | Description | 12PIN Number | 18PIN Number |
|---|---|---|---|
| VCC | Power positive (3.3V / 5V input) | 1 | 1 |
| GND | Power ground | 2 | 3 |
| MOSI | SPI data pin (Master Out Slave In) | 3 | 5 |
| SCLK | SPI clock pin | 4 | 4 |
| LCD_CS | LCD chip select, active low | 5 | 9 |
| LCD_DC | LCD data/command control, low for command, high for data | 6 | 7 |
| LCD_RST | LCD reset, active low | 7 | 8 |
| LCD_BL | LCD backlight control | 8 | 2 |
| TP_SDA | Touch panel I2C data pin | 9 | 14 |
| TP_SCL | Touch panel I2C clock pin | 10 | 13 |
| TP_RST | Touch panel reset, active low | 11 | 12 |
| TP_INT | Touch panel interrupt output | 12 | 15 |

This chapter contains the following sections. Please read as needed:
New to ESP32 ESP-IDF development and looking to get started quickly? We have prepared a general Getting Started Tutorial for you.
Please Note: This tutorial uses the ESP32-S3-Zero as a teaching example, and all hardware code is based on its pinout. Before you start, it is recommended that you check the pinout of your development board to ensure the pin configuration is correct.
The following guide uses Windows as an example, demonstrating development using VS Code + the ESP-IDF extension. macOS and Linux users should refer to the official documentation.
The screenshots in this section use ESP-IDF V5.5.2 as an example. When installing, please select the ESP-IDF version that matches your board's example.
Download the installation manager from the ESP-IDF Installation Manager page. This is Espressif's latest cross-platform installer. The following steps demonstrate how to use its offline installation feature.
Click the Offline Installer tab on the page, then select Windows as the operating system and the ESP-IDF version you need (the version shown in the screenshot is for reference only — choose the version that fits your actual needs).

After confirming your selection, click the download button. The browser will automatically download two files: the ESP-IDF Offline Package (.zst) and the ESP-IDF Installer (.exe).

Please wait for both files to finish downloading.
Once the download is complete, double-click to run the ESP-IDF Installer (eim-gui-windows-x64.exe).
The installer will automatically detect if the offline package exists in the same directory. Click Install from archive.

Next, select the installation path. We recommend using the default path. If you need to customize it, ensure the path does not contain Chinese characters or spaces. Click Start installation to proceed.

When you see the following screen, the ESP-IDF installation is successful.

We recommend installing the drivers as well. Click Finish installation, then select Install driver.

Download and install Visual Studio Code.
During installation, it is recommended to check Add "Open with Code" action to Windows Explorer file context menu to facilitate opening project folders quickly.
In VS Code, click the Extensions icon in the Activity Bar on the side (or use the shortcut Ctrl + Shift + X) to open the Extensions view.
Enter ESP-IDF in the search box, locate the ESP-IDF extension, and click Install.

For ESP-IDF extension versions ≥ 2.0, the extension will automatically detect and recognize the ESP-IDF environment installed in the previous steps, requiring no manual configuration.
| 1.54inch Touch LCD Module | ESP32-S3-DEV-KIT-N16R8-M |
|---|---|
| VCC | 3.3V |
| GND | GND |
| LCD_DIN | GP7 |
| LCD_CLK | GP6 |
| LCD_CS | GP5 |
| LCD_DC | GP4 |
| LCD_RST | GP38 |
| LCD_BL | GP40 |
| TP_SDA | GP15 |
| TP_SCL | GP14 |
| TP_RST | GP39 |
| TP_INT | GP13 |
image_slider_init():
app_main():
LCD Color Cycle Test:




LCD Touch Test:

LVGL Image Switching Test:

This chapter contains the following sections. Please read as needed:
New to Arduino ESP32 development and looking for a quick start? We have prepared a comprehensive Getting Started Tutorial for you.
Note: This tutorial uses the ESP32-S3-Zero as a reference example, and all hardware code is based on its pinout. Before you start, we recommend checking the pinout of your development board to ensure the pin configuration is correct.
Please refer to the tutorial Installing and Configuring Arduino IDE to download and install the Arduino IDE and add ESP32 support.
Arduino directory. The Arduino-uno\libraries directory inside this package contains all the necessary library files required for this tutorial.| Library/File Name | Description | Version | Installation Method |
|---|---|---|---|
| GFX_Library_for_Arduino | ST7789 GFX graphics library | v1.4.9 | "Install Offline" |
There are strong dependencies between versions of LVGL and its driver libraries. For example, a driver written for LVGL v8 may not be compatible with LVGL v9. To ensure that the examples can be reproduced reliably, it is recommended to use the specific versions listed in the table above. Mixing different versions of libraries may lead to compilation failures or runtime errors.
Installation Steps:
Download the demo package.
Copy all the folders (GFX_Library_for_Arduino) from its Arduino-uno\libraries directory to your Arduino libraries folder.
The path to the Arduino libraries folder is typically: c:\Users\<username>\Documents\Arduino\libraries.
You can also locate it in the Arduino IDE by going to File > Preferences and checking the "Sketchbook location". The libraries folder is the libraries subfolder within this path.
For other installation methods, please refer to: Arduino Library Management Tutorial.
Installation Instructions for the 1.54inch Touch LCD Module Required Board
| Board Name | Board Installation Requirement | Version Requirement |
|---|---|---|
| Arduino AVR Boards | "Install Offline" / "Install Online" | v1.8.6 |
The Arduino_Uno_test demo is located in the Arduino-uno directory of the demo package.
| 1.54inch Touch LCD Module | Arduino-Uno |
|---|---|
| VCC | 3.3V |
| GND | GND |
| LCD_DIN | GP11 |
| LCD_CLK | GP13 |
| LCD_CS | GP9 |
| LCD_DC | GP8 |
| LCD_RST | GP7 |
| LCD_BL | GP6 |
| TP_SDA | SDA |
| TP_SCL | SCL |
| TP_RST | GP2 |
| TP_INT | GP3 |
setup():
loop():
LCD_display_test():
LCD Touch Test:

Monday-Friday (9:30-6:30) Saturday (9:30-5:30)
Email: services01@spotpear.com