• sales

    +86-0755-88291180

ESP32-C6-LCD-0.85 User Guide

【Resource Overview】


  1. Display screen
  2. Type-C
  3. RST
  4. BOOT
  1. Micro SD Port
  2. Patch ceramic antenna
  3. ESP32-C6FH4

【Pin Definitions】

[] SPI Interface definition

DC         ==>  GPIO15

 CS          ==>  GPIO14

    SCLK     ==>  GPIO7

MOSI    ==>  GPIO6

BL ==>  GPIO3

    RESET   ==>  NC

 

[] SD

  SD_CS  ==> GPIO4

   SD_MOSI  ==> GPIO6

   SD_CLK       ==>     GPIO7

   SD_MISO      ==>     GPIO5

[] RGB

RGB      ==>     GPIO8


【program】

Download link: Demo


Software and library installation

[] Download and install Arduino IDE: https://www.arduino.cc/en/software


[] Import ESP32 series chips and motherboard libraries in Arduino IDE
Please download the Esp32 by espressif systems 3.0.3, other versions may have problems


[] Import ESP32-C6-0.85 library
Open the downloaded Demo, enter the ESP32-C6-0.85-demo\Arduino\libraries folder, and copy all the files under lib to the library storage path
C:\Documents\Arduino\libraries (click to confirm how to view your own path)
Note: If you have installed the LVGL library before, please delete the previous LVGL and copy the files in lib to the libraries folder


Version compatibility notes

There are strong dependencies between versions of LVGL and its driver library. For example, a driver written for LVGL v8 may be incompatible with LVGL v9. To ensure stable reproduction of the examples, it is recommended to use the specific versions listed in the table above. Mixing different versions of the library may cause compilation failures or runtime exceptions.


Arduino Engineering Parameter Settings

 

Run the demo

Power-on default

[] The screen flashes red, blue, and green, then RGB lighting, before transitioning to a weather clock effect. (Phone settings)

Wi-Fi hotspot name: spotpear Password: spotpear123

The device will then automatically connect to your phone's hotspot and enter the Astronaut Weather Clock interface.

[] Press and hold the boot button. The default GIF will then play in Flash.

[] Press and hold the boot button again. Enter SD motion picture playback. After entering SD mode, press the boot button briefly to switch between different videos. [] It will cycle back to the weather clock.

 

RGB_LCD

Program Description

 This example demonstrates simultaneous RGB and LCD screen refresh display.

 setup() function:

undefined LCD_Init(): Initializes the GC9107 display (configures SPI, screen commands, backlight, etc.);

uundefined WS2812 _Init(): Initializes the GC9107 display (configures SPI, screen commands, backlight, etc.)

 loop() function:

undefined continuously refreshes the LCD and RGB

undefined delay(1000): Delay for 1 second to ensure refresh frequency.

  Running effect



_Video_demo

Program Description

 This example demonstrates SD card detection, video multimedia playback, and image playback.

Code Analysis

 setup() function

undefined Hardware initialization: Complete the Flash test, GC9107 display initialization, backlight settings, and WS2812B LED strip initialization in sequence;

undefined RGB self-test: The screen and light strip synchronously display red, green and blue colors in sequence, each for 1 second, and then the light strip turns off;

undefined SD Card Detection: Identifies the SD card type. If no card is found, an error message is displayed on the screen and the subsequent process is terminated. If a card is found, the video file is checked; if a video is present, the video playback module is initialized.

 loop() function

undefined Minimum play logic: If the SD card is not detected, simply delay the loop and do not perform any playback operation;

undefined Playback streaming: If the video module has been initialized, call Video_Play_Loop() to loop the video playback;

Running effect

If an SD card is present, press the button to switch videos; otherwise, an error message will be displayed on the screen and the process will terminate.


_LVGL_WeatherClock

Program Description

 This example demonstrates a weather clock system and video playback, displaying a weather clock on the GC9107 display and allowing users to switch videos using buttons, while balancing smooth operation with optimized CPU resource usage.

Code Analysis

 setup function

undefined Serial port initialization: The serial port is opened at a baud rate of 115200 for system log printing, which is convenient for debugging;

undefined Hardware/Driver Initialization: Perform Flash test, GC9107 display initialization, LVGL graphics library initialization, and SD card initialization in sequence;

undefined Peripheral configuration: Set the display backlight to 100% and initialize the weather clock business logic;

undefined Log output: Initialization progress is fed back via serial port, which is helpful for troubleshooting startup anomalies.

 loop function

undefined LVGL core processing: Calling Timer_Loop ensures that LVGL timers and animations are updated normally;

undefined Business logic loop: Execute WeatherClock_Loop to handle the real-time data update and display logic of the weather clock;

undefined Loop key detection: Determine if a key is pressed; if pressed, perform the corresponding operation.

undefined Resource optimization: Only 1ms latency is retained, which avoids excessive CPU usage and ensures high-frequency LVGL scheduling, balancing smoothness and resource consumption.


【Resources】

Schematic Diagram

Demo

Size


Datasheets

ESP32-C6

Other Components

Sofwares



TAG: Gyroscope Sensor TOF Time of Flight Laser Range Sensor Mini Radar module UART Serial / I2C Port For Arduino / Raspberry Pi / ESP32 ESP32 S3 N16R8 Development board 1.9 inch LCD Display 1.9inch TouchScreen 170×320 SD-Port RGB LED QMI8658 6-Axis ST7789 CST816 Developer Kit ESP32-S3 GEEK Magnetic Encoder Servo Motor 35KG.CM 24V 360° RS485 High Precision And Large Torque RSBL35-24-HS Refractive Prism ESP32 3.5 inch Capacitive TouchScreen LCD Display ST7796 FT6336 320x480 For Arduino/Raspberry Pi/Pico Industrial Isolated 4CH RS485 TO POE ETH (B) RJ45 Converter UART For Modbus ESP32-S3 AI Camera Development Board Dual Microphone with Display Port Raspberry Pi Pico 2 RP2350 CAN Onboard XL2515 CAN Controller RP2350A ESP32 1.54 inch E-Paper Smart Watch display Screen 200x200 Ultra-low power For Arduino/Micropython/RTOS For Watchy Milk-V Duo S Extend Partition on SD Card or eMMC Raspberry Pi Pico W Raspberry Pi 5 NVMe AV to RGB Raspberry Pi Pico RP2040 1.69 inch TouchScreen Round LCD Display With QMI8658/Buzzer/RTC For Arduino Changeable Photo Raspberry Pi 5 Fan Raspberry Pi 5