Skip to content

mcuw/esp32-t-qt-c6-sdk

Repository files navigation

ESP32 LilyGo T-QT C6 SDK

Description

This is an Arduino library (v3.x) to use the LilyGo T-QT C6 with touch gesture display and LiPo battery.

LilyGo T-QT C6 with ring adapter

image from lilygo.cc

LilyGo T-QT C6 is a mini development board based on the ESP32-C6 chip from espressif and with a 128x128px TFT full-color touch gesture screen

example code from LilyGo: T-QT-C6

Features

  • Wireless: Wi-Fi 6 2.4GHz, Bluetooth 5 (LE), Thread, Zigbee
  • CPU 32-bit RISC-V 160 MHz
  • CPU 32-bit RISC-V 20 MHz
  • 320 KB ROM
  • 512 KB SRAM
  • supports PSRAM
  • protocols: SPI, UART, I2C, RMT, TWAI, PWM, SDIO, Motor Control PWM
  • 12-bit ADC
  • temperature sensor

Example codes

Clone this repository.

Uncomment a src_dir= line in the platform.ini file.

example code description
Serial ./examples/serial UART as debug output
MAC ./examples/mac Outputs the MAC address
breathing light ./examples/breathing-light showcase breathing-light
task stack size ./examples/task-stack-size gather needed stack size
dev mode ./examples/dev-mode QtDev class with all features
battery voltage ./examples/battery-voltage Outputs the battery voltage
touch CST816T ./examples/touch-CST816T touch gesture to Serial
gfx ./examples/gfx showcase display drawing
touch-CST816T-gfx ./examples/touch-CST816T-gfx display with touch gesture
WiFi AP ./examples/wifi-ap Access Point with Qwik UI
catalog ./examples/

WiFi AP - WiFi Access Point with Qwik UI example

wifi-ap example with Qwik UI

  1. modify the ./partitions.csv if needed to prepare the filesystem

  2. comment out src_dir = ./examples/wifi-ap line in platformio.ini

  3. build and upload the project

platformio build app

  1. build and upload Qwik UI (SSG) in /data
cd ui && pnpm i
pnpm build.state
  1. call Build Filesystem Image then Upload Filesystem Image:

upload filesystem platformio option

Get Started a new project

  1. create a platformio project (e.g. with expressif esp32-c6-devkitc-1)

  2. copy the boards path to your project root path

  3. adapt the platformio.ini

[env:esp32-c6]
board = esp32-c6-n4
framework = arduino
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
lib_deps =
  https://github.com/mcuw/esp32-t-qt-c6-sdk.git
  1. example main.cpp
#include <Arduino.h>
#include <Qt.h>

Qt qt;

void setup()
{
  qt.begin();
}

void loop()
{
  qt.setBreathingLight(0);
  delay(1000);

  qt.setBreathingLight(255);
  delay(1000);
}

Disclaimer

Contribution and help ... if you find an issue or wants to contribute then please do not hesitate to create a Pull request or an issue.

We provide our build template as is, and we make no promises or guarantees about this code.

About

Arduino SDK for Lilygo T-QT C6 with examples 2025

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published