boards-waveshare · ESP32-S3
Waveshare ESP32-S3-Touch-LCD-5B
ESP32-S3 with a 1024 x 600 RGB display, a GT911 touch controller, a CH422G I/O expander and Wi-Fi.
Board id waveshare-esp32-s3-touch-lcd-5b, file boards/esp32/waveshare-esp32-s3-touch-lcd-5b.json.
| Property | Value |
|---|---|
| Chip | ESP32-S3 (esp32s3) |
| PSRAM | octal |
| Flash | 16 MB, qio mode |
| Console | usb-jtag |
Blocks
| Block | Type | Keys | Handled by | Notes |
|---|---|---|---|---|
network |
wifi |
buffers psram, static-buffers 4 |
the SDK + ext-wifi | The script connects with ext-wifi. |
i2c |
i2c |
sda 8, scl 9 | ext-i2c | Bus::onboard(); the touch controller is on this bus. |
expander |
ch422g |
inputs exio0,exio5 |
io-ch422g | Pins exio0 to exio7 and oc0 to oc3 for other blocks. |
display |
rgb |
width 1024, height 600, pclk 7, de 5, hsync 46, vsync 3, data 14,38,18,17,10,39,0,45,48,47,21,1,2,42,41,40, pclk-hz 26000000, pclk-neg 1, hsync-pulse 30, hsync-back 145, hsync-front 170, vsync-pulse 2, vsync-back 23, vsync-front 12, bounce-rows 6, frames 2, bl exio2, rst exio3 |
php-baremetal/esp32-display-rgb |
Parallel RGB panel. |
touch |
gt911 |
int 4, rst exio1, width 1024, height 600 |
touch-gt911 | Needs ext-i2c (it comes with the driver). |
Pins are GPIO numbers, or pins of the board's expander (exio1). The keys are described in
Board files; a project changes them with
board overrides.
Use it in a project
composer require php-baremetal/boards-waveshare
composer require php-baremetal/ext-wifi php-baremetal/ext-i2c php-baremetal/io-ch422g php-baremetal/esp32-display-rgb php-baremetal/touch-gt911 # the blocks you use
{
"sdk": "esp32@^2.0",
"board": "waveshare-esp32-s3-touch-lcd-5b",
"runtime": "init-loop",
"storage": "embedded"
}
Install only the drivers of the blocks the program uses: a block without its driver is left alone.
Notes
- Wi-Fi takes its buffers from PSRAM (
buffers: "psram") with 4 static buffers (static-buffers: 4): the panel and a renderer such as Slate leave about 35 KB of internal RAM, and starting Wi-Fi needs about 42-45 KB. - The panel runs at a pixel clock of 26 MHz (about 29.8 Hz) with two framebuffers and 6 bounce buffer rows. The build reserves the two framebuffers (1024 x 600 x 2 bytes each) in PSRAM when
esp32-display-rgbis installed. - The backlight (
exio2), the panel reset (exio3) and the touch reset (exio1) are pins of the CH422G: installphp-baremetal/io-ch422gwith the display and touch drivers.exio0andexio5are inputs. - GPIO 0 is both a data line of the panel (G3) and the BOOT button: do not use BOOT while the panel runs.
- The microSD slot's chip select is on the expander, so the board has no
microsdblock. The flash is read in QIO mode.
Related
- Waveshare boards Overview
- Board files SDK
- Board overrides SDK