How to setup the lvgl library for Esp32-s3-WROOM-1 with TFT display 800*480


Greetings. I have the 480 x 272 TFT with capacitive touch screen version of this board. AKA ESP32-4827S043.

It’s been a bit of a bear to get the lvgl demo’s running but just managed to do so, except, the touch screen isn’t yet working. One thing at a time.

Attached is a zip file containing the code and config file used.

Note, you will have to replace the Arduino_ESP32RGBPanel* rgbpanel = new Arduino_ESP32RGBPanel( configuration with the correct one for your 800 *480 panel.

Also, copying the demo and examples folder as given here and following the file here was needed.
Note that I did have to explicitly include the path to lv_demos.h as seen in the sketch.

File touch.h will also have to be edited to select the correct driver for your touch panel (and possibly install the needed library).

My environment:
DUT: Sunton ESP32-4827S043C (capacitive touch screen, ESP32-S3-N16R8).

Arduino IDE: Version: 2.1.1, Date: 2023-06-30T16:00:43.829Z, CLI Version: 0.32.3

Host: macOS v13.5 (22G74) Ventura

arduino-esp32 Core: v2.0.11

lvgl at version 8.3.7
GFX Library for Arduino at version 1.3.7
SPI at version 2.0.0
Wire at version 2.0.0
TAMC_GT911 at version 1.0.2

From sketch upload: v4.5.1
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz

Arduino IDE Settings:
Board: “ESP323 Dev Module”
USB CDC On Boot: “Disabled”
CPU Frequency: “240MHz (WiFi)”
Core Debug Level: “None”
USB DFU On Boot: “Disabled”
Erase All Flash Before Sketch Upload: “Disabled”
Events Run On: “Core 1”
Flash Mode: “QI0 80MHz”
Flash Size: “16MB (128Mb)”
JTAG Adapter: “Disabled”
Arduino Runs On: “Core 1”
USB Firmware MSC On Boot: “Disabled”
Partition Scheme: “8M with spiffs (3MB APP/1.5MB SPIFFS)”
Upload Mode: “UARTO / Hardware CDC”
Upload Speed: “921600”
USB Mode: “Hardware CDC and JAG”

Hope this helps.

If anyone knows how to modify the sketch to get the touch screen working, I’d appreciate the info! On this version of the board it uses the GT911 driver. (12.3 KB)

1 Like