Google Chat:---
+86-0755-88291180
sales@spotpear.com
dragon_manager@163.com
tech-support@spotpear.com
zhoujie@spotpear.com
WhatsApp:13246739196
WhatsApp:13424403025
| MUC | ESP32-C6FH4 | Display Size | 1.3inch |
|---|---|---|---|
| Operating Voltage | 3.3V | Display Resolution | 240x240 pixels |
| Backlight Current | 10mA | Display Panel | IPS |
| Display Interface | 4-wire SPI | Driver IC | ST7789V2 |
Supports expansion of various peripherals; more external devices can be connected via the GPIO pin headers.



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\libraries directory within this package contains all the necessary library files required for this tutorial.| Library/File Name | Description | Version | Installation Method |
|---|---|---|---|
| Adafruit_GFX_Library | Low-level graphics rendering library | v1.11.9 | Install via library manager or manually |
| Arduino_GFX | Display driver graphics library supporting ST7789 chip | v1.4.9 | Install via library manager or manually |
| ArduinoJson | Lightweight JSON parsing/generation library | v6.21.2 | Install via library manager or manually |
| lvgl | LVGL display framework | v8.3.10 | Install via library manager or manually |
| FastLED | Addressable LED control library | v3.10.3 | Install via library manager or manually |
| JPEGDEC | JPEG image decoding library | v1.6.1 | Install via library manager or manually |
| PNGdec | PNG image decoding library | v1.0.2 | Install via library manager or manually |
| Time | Basic time handling library | 1.6.1 | Install via library manager or manually |
| TJpg_Decoder | Ultra-lightweight JPEG decoding library | 1.0.8 | Install via library manager or manually |
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 example package.
Copy all folders (Arduino_DriveBus, GFX_Library_for_Arduino, etc.) in the Arduino\libraries directory to the Arduino library 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.
Required Board Installation Instructions for ESP32-C6-LCD-1.3
| Board Name | Installation Requirement | Version Requirement |
|---|---|---|
| ESP32 by Espressif Systems | "Install Offline" / "Install Online" | 3.0.1 |
The Arduino examples are located in the Arduino/examples directory of the example package.
| Demo | Basic Program Description | Dependency Library |
|---|---|---|
| 01_LVGL_Arduino | Demonstrates basic graphics library functions, hardware parameter detection, and display | FastLED, lvgl |
| 02_LVGL_WeatherClock | Demonstrates basic graphics library functions, can also be used to test basic display performance and random text display effects | GFX_Library_for_Arduino, Arduino_DriveBus, Adafruit_XCA9554 |
| 03_Video_demo | Prints ASCII characters in rows and columns on the display according to the screen size | GFX_Library_for_Arduino |
ESP32-C6-LCD-1.3 Model Selection

Arduino Project Parameter Settings

setup() function:Flash_test(): Detects the ESP32 Flash chip capacity and assigns it to the global variable Flash_Size.LCD_Init(): Initializes the ST7789 display (configures SPI, screen commands, backlight, etc.).Lvgl_Init(): Initializes the LVGL graphics library, binds the ST7789 display refresh function, creates a basic LVGL display buffer, and registers touch (placeholder) and display drivers.SD_Init(): Initializes the TF card, detects the card type, calculates the total capacity, and assigns it to SDCard_Size.Lvgl_Example1(): Creates the LVGL interface (Onboard parameter panel), initializes WS2812B and the waterfall light / button.Wireless_Test2(): Creates the FreeRTOS task WirelessScanTask, which runs in the background on core 0 to scan for WiFi/BLE devices, and stores the results in WIFI_NUM / BLE_NUM.loop() function:Timer_Loop(): Calls the LVGL core timer handler lv_timer_handler() to maintain interface refresh and normal execution of timers (such as button detection, waterfall light, parameter refresh).delay(5): A simple delay to ensure LVGL refresh rate.
setup function:loop function:Timer_Loop to ensure LVGL timers and animations update normally.WeatherClock_Loop to handle real-time data updates and display logic for the weather clock.![]() ![]() |
|---|
setup() function:loop() function:Video_Play_Loop() to play the video in a loop.

This chapter includes 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.
For the ESP32-C6-LCD-1.3 development board, it is recommended to use ESP-IDF V5.5.0 or higher.
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.




ESP32-C6 Chip Official Manuals
Monday-Friday (9:30-6:30) Saturday (9:30-5:30)
Email: services01@spotpear.com