Skip to content
php-baremetal REGISTRY
Publish a package

Waveshare ESP32-S3-Touch-LCD-5B

waveshare-esp32-s3-touch-lcd-5b

sdk: ESP32 chip: ESP32-S3 psram: octal flash: 16MB bm-boards official

Use it

phpbm init lists this board and adds php-baremetal/boards-waveshare to the project. In an existing project, require the package and name the board.

bash terminal
composer require php-baremetal/boards-waveshare
json composer.json (excerpt)
"extra": { "baremetal": {"board":"waveshare-esp32-s3-touch-lcd-5b"} }

On-board peripherals

Each block names a peripheral and its type. The SDK implements some of them; the others are read by a driver package that the project requires, which builds the device from the block with onboard().

Block Type Pins and settings Driver
network wifi
buffers
psram
static-buffers
4
in the SDK
i2c i2c
sda
8
scl
9
ext-i2c
expander ch422g
inputs
exio0,exio5
io-ch422g
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
no driver in the registry yet
touch gt911
int
4
rst
exio1
width
1024
height
600
touch-gt911

Board file

The file as php-baremetal/boards-waveshare 1.0.0 ships it.

json boards/esp32/waveshare-esp32-s3-touch-lcd-5b.json
{
    "name": "Waveshare ESP32-S3-Touch-LCD-5B",
    "chip": "esp32s3",
    "psram": "octal",
    "flash": "16MB",
    "flash-mode": "qio",
    "console": "usb-jtag",
    "network": {
        "type": "wifi",
        "buffers": "psram",
        "static-buffers": 4
    },
    "i2c": {
        "type": "i2c",
        "sda": 8,
        "scl": 9
    },
    "expander": {
        "type": "ch422g",
        "inputs": "exio0,exio5"
    },
    "display": {
        "type": "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"
    },
    "touch": {
        "type": "gt911",
        "int": 4,
        "rst": "exio1",
        "width": 1024,
        "height": 600
    }
}