Skip to main content

ESP32-C6-Touch-LCD-2.8 Factory Firmware Usage

This section describes the functions and usage of each application (APP) in the ESP32-C6-Touch-LCD-2.8 factory firmware.

Function Description

The ESP32-C6 only supports 2.4 GHz Wi-Fi and does not support 5 GHz. Please select the firmware according to the complete product model.

Component Preparation​

  • ESP32-C6-Touch-LCD-2.8 ×1.
  • USB data cable ×1, used for power supply and flashing.
  • Speaker ×1, required when using music playback and recording playback.
  • TF card ×1, required when using the music player; use the FAT32 format with a capacity of no more than 64 GB.
  • Matching battery ×1 (optional, for battery power).

First Use​

  1. Connect the speaker before powering on; if you need to play music, first insert a TF card with the prepared files.
  2. Connect the development board to the computer using a USB data cable, or connect the matching battery for power.
  3. After system initialization completes, the APP desktop appears. Swipe left or right to switch pages; each page displays 4 APP icons.
  4. Complete the network setup as described below to use Weather and network time synchronization.

TF Card Directory​

TF Card Directory Description

Place MP3 audio in the music folder in the TF card root directory:

TF card root directory
└── music
├── music1.mp3
└── music2.mp3
  • music: Stores MP3 music files; subdirectories are not scanned.
  • After replacing files or reinserting the card, reopen the Music APP.
  • Do not remove the card while the TF card is being read or written. Mic Test recordings are temporarily stored in the onboard Flash, with no TF card required.

After file preparation is complete, insert the TF card before powering on the development board.

Wi-Fi Setup​

This product uses the ESP32-C6, whose hardware only supports 2.4 GHz Wi-Fi and does not support 5 GHz, so please select a 2.4 GHz network or hotspot when configuring the network.

You can connect to the network using either of the following two methods. A saved network takes precedence over the default hotspot.

Method 1: Connect to the Network via the Provisioning Page​

  1. Open "Settings" > "Wi-Fi setup", and the development board starts a provisioning hotspot.
  2. Use your phone to scan the QR code on the screen, or connect to the development board's hotspot using the hotspot name and password displayed on the screen.
  3. After connecting, the provisioning page opens; if it does not open automatically, visit the development board provisioning page in a browser.
  4. Enter the Wi-Fi name and password to connect to and submit; please select a 2.4 GHz network.
  5. Check the connection status on the development board screen. On success, it displays "Connected! You can go back."; when the network information is saved successfully, it displays "Connected and saved." and the network configuration hotspot closes automatically shortly after. Exiting the network configuration page also closes the hotspot.

Wi-Fi setup Hotspot QR Code

Mobile Phone Wi-Fi Network Configuration Page

Method 2: Connect to a Specified Hotspot​

When no other network is saved, the development board tries to connect to the following hotspot. You can enable your phone's hotspot before powering on, keeping the name and password exactly the same:

ItemSetting
Hotspot nameweather-wifi
Hotspot password12345678
Band2.4 GHz

After connecting to a network with internet access, the desktop time synchronizes to Beijing time, and the Weather APP can retrieve Shenzhen weather. The desktop time shows --:-- until synchronization completes.

Firmware Download and Flashing​

For the download entry, see ESP32-C6-Touch-LCD-2.8 Resources and Documents. The factory source code is located in examples/factory and uses ESP-IDF v5.5.4; compile and flash in that directory, and for the steps, see ESP32-C6-Touch-LCD-2.8 Build and Flash.

The factory project serial monitor uses a 2,000,000 baud rate, which differs from the 115200 of the basic examples.

USB Download Mode

If the port cannot be recognized during flashing, disconnect USB, press and hold BOOT, connect the development board to the computer, and then release BOOT. After the download completes, power cycle the device to run the program.

APP Usage Instructions​

Tap a desktop icon to enter the corresponding APP. Display Test is exited by double-tapping, and Touch Test is exited using the back button in the upper left corner or BOOT; other APPs can be returned to the desktop by swiping up from the middle of the bottom of the screen, and some APPs also provide a back button.

Before opening another audio APP, please exit the current audio APP. Exiting Music or Mic Test stops the corresponding audio function, and Music will not continue playing in the background.

Display Test APP​

  • After opening, it cycles through red, green, blue, yellow, and white in order, with each color held for about 1 second.
  • You can check for display issues such as abnormal lines, local flicker, and missing pixels. Normal color switching is not abnormal flicker.
  • Double-tap anywhere on the screen to exit. After booting, the device enters the desktop, and you need to open this APP manually.

Red Display Test

Green Display Test

Blue Display Test

Yellow Display Test

White Display Test

Settings APP​

  • "Brightness": Adjusts the screen brightness.
  • "Volume": Adjusts the volume.
  • "Wi-Fi scan": Scans nearby networks; used for scanning only, not for connecting or changing saved networks.
  • "Wi-Fi setup": Starts the provisioning hotspot to configure the network via a phone.
  • TF card page: Displays capacity, free space, and file system information; tap "Refresh" to refresh.
  • "About": Displays the product model, firmware information, and MAC address.

The back arrow in the upper-left corner returns to the Settings home page from a subpage, and returns to the desktop from the Settings home page.

Settings home page

TF card capacity information

Wi-Fi scan results

AIChats APP​

After connecting to a Wi-Fi network that can access the internet normally and connecting the speaker, open the AIChats APP to have a voice conversation with Xiaozhi. On first use, complete device activation according to the on-screen prompts.

  • Start a conversation: Say "Ni Hao Xiao Zhi" to wake up, or tap the smiley face on the screen to start a conversation. The screen displays the recognized text and Xiaozhi's reply, and the speaker plays the answer.
  • Voice adjustment: You can say "ba yinliang tiao dao bashi" or "ba liangdu tiao dao wushi" to adjust the speaker volume and screen brightness.
  • Interrupt the reply: While Xiaozhi is speaking, briefly press BOOT (GPIO9) to interrupt the current reply and start a new round of voice input; when in standby, briefly pressing BOOT can also start voice input.
  • Exit the app: Swipe up from the middle of the bottom of the screen to return to the desktop.

Touch Test APP​

  • Slide your finger on the screen to draw, with red strokes displayed at the touch positions.
  • You can cover the edges and four corners of the screen to check for broken touch or position offset.
  • Tap the back button in the upper left corner or press BOOT to exit.

Touch Test touch drawing

GravityBall APP​

  • Before opening, place the development board flat and still, and wait about 2 seconds for calibration to complete.
  • Tilt the development board and the ball moves in the tilt direction, and can move to all edges of the screen.
  • Press BOOT to recalibrate; keep the development board flat and still during calibration.

GravityBall gravity ball

Weather APP​

  • After connecting to the network, it retrieves and displays Shenzhen weather; tap the refresh button to retrieve the data again.
  • Before use, confirm that the connected network can access the internet; if Wi-Fi is connected but the weather service is unreachable, weather data may still fail to update.

Weather Shenzhen weather

Music APP​

  • Connect the speaker before powering on, and place MP3 files in the music folder in the TF card root directory.
  • After opening the APP, you can play, pause, and switch to the previous or next track.
  • The interface displays the track, playback time, and playback progress. Playback stops after exiting the APP.

Music music player

Sensor APP​

  • PCF85063 real-time clock: Displays the date and time of the hardware RTC (Real-Time Clock), updated every second.
  • SHTC3 temperature and humidity sensor: Displays the ambient temperature and relative humidity, updated about once per second.
  • QMI8658 six-axis sensor: Displays the three-axis acceleration and angular velocity; rotate or tilt the development board to observe the data changes.
  • If sensor reading fails, the corresponding data displays -- along with status information.
Desktop Time and RTC Time

The desktop displays the network-synchronized Beijing time, while Sensor displays the hardware RTC time; the two are independent. Network time synchronization does not automatically overwrite the hardware RTC, and the two times are not required to match.

Sensor real-time clock, six-axis, and temperature/humidity data

2048 APP​

  • Swipe up, down, left, or right to merge tiles with the same number; the interface displays the current score and best score.
  • Tap "New" to restart. After exiting and re-entering, the current board continues; progress is not retained after power loss.

2048 game

Mic Test APP​

  • Speak into the onboard microphone and observe the volume bar and value changing with the sound.
  • Tap "Record" to start recording, tap "Stop" to stop, and tap "Play" to play back; connect the speaker before using playback.
  • A single recording can be up to 10 seconds, and the recording is temporarily stored in the onboard Flash, with no TF card required. A new recording overwrites the previous one; after exiting the APP or restarting, the recording is no longer retained for playback, and no file export function is provided.
  • While monitoring the volume bar, the microphone sound is not played through the speaker in real time.

Mic Test microphone recording test

Button Test APP​

  • This APP only tests BOOT (GPIO9) and does not include BAT_PWR button testing.
  • Release BOOT first, then short-press and release it once. The status changes with pressing and releasing, and the count increases by 1 after one operation, displaying "PASS".
  • After the test passes, it displays "1 / 1 button passed"; tap "Test again" to reset and retest.

Button Test BOOT button test