boards-waveshare · ESP32-P4
Waveshare ESP32-P4-WIFI6-Touch-LCD-5
ESP32-P4 (v3 silicon) with a 720 x 1280 MIPI-DSI display, a GT911 touch controller, an ESP32-C6 for Wi-Fi and a microSD slot.
Board id waveshare-esp32-p4-wifi6-touch-lcd-5, file boards/esp32/waveshare-esp32-p4-wifi6-touch-lcd-5.json.
| Property | Value |
|---|---|
| Chip | ESP32-P4 (esp32p4) |
| PSRAM | hex |
| Flash | 32 MB, qio mode |
| Revision | v3 |
| Console | uart |
Blocks
| Block | Type | Keys | Handled by | Notes |
|---|---|---|---|---|
microsd |
sdio |
default pins | the SDK | The microsd storage ("storage": "microsd"). |
network |
wifi-c6 |
none | the SDK + ext-wifi | The script connects with ext-wifi. |
i2c |
i2c |
sda 7, scl 8 | ext-i2c | Bus::onboard(); the touch controller is on this bus. |
display |
dsi |
width 720, height 1280, rotation 90, frames 2, lanes 2, lane-mbps 700, dpi-hz 58000000, hsync-pulse 20, hsync-back 20, hsync-front 40, vsync-pulse 4, vsync-back 10, vsync-front 24, phy-ldo 3, phy-mv 2500, rst 27, rst-high 1, bl 26, bl-pwm 1, init the panel's command sequence (see the board file) | php-baremetal/esp32-display-dsi |
MIPI-DSI panel. |
touch |
gt911 |
rst 23, width 720, height 1280, swap-xy 1, mirror-y 1, poll-ms 10 | 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/esp32-display-dsi php-baremetal/touch-gt911 # the blocks you use
{
"sdk": "esp32@^2.0",
"board": "waveshare-esp32-p4-wifi6-touch-lcd-5",
"runtime": "init-loop",
"storage": "microsd"
}
Install only the drivers of the blocks the program uses: a block without its driver is left alone.
Notes
- v3 silicon: the board sets
revisionv3; a chip of the v1 family refuses the image. The flash is read in QIO mode. - The panel is an HX8394, 2 lanes at 700 Mbps, 58 MHz (about 55 Hz), turned to 1280 x 720 by
rotation90, with two framebuffers. Withesp32-display-dsiinstalled the build reserves 5400 KB of PSRAM: two framebuffers of 720 x 1280 x 2 bytes and the turned drawing surface (3600 KB with ext-display'sdisplay-surfaceoption set tofalse). - The GT911's INT line is not wired: its events are polled every 10 ms (
poll-ms); reset on GPIO 23.swap-xyandmirror-ymatch the display'srotation90 (withrotation270 useswap-xyandmirror-x). - The
i2cbus is SDA 7, SCL 8.
Related
- Waveshare boards Overview
- Board files SDK
- Board overrides SDK