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.
composer require php-baremetal/boards-waveshare
"extra": { "baremetal": {"board":"waveshare-esp32-s3-touch-lcd-1.85b"} }
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 |
|---|---|---|---|
| microsd | spi |
|
in the SDK |
| network | wifi | none | in the SDK |
| display | st77916 |
|
esp32-display-st77916 |
| i2c | i2c |
|
ext-i2c |
| touch | cst816s |
|
touch-cst816s |
Board file
The file as php-baremetal/boards-waveshare 1.0.0 ships it.
{
"name": "Waveshare ESP32-S3-Touch-LCD-1.85B",
"chip": "esp32s3",
"psram": "octal",
"flash": "16MB",
"console": "usb-jtag",
"microsd": {
"type": "spi",
"cs": 13,
"sclk": 15,
"mosi": 14,
"miso": 16
},
"network": {
"type": "wifi"
},
"display": {
"type": "st77916",
"sclk": 40,
"d0": 46,
"d1": 45,
"d2": 42,
"d3": 41,
"cs": 21,
"rst": 3,
"bl": 5,
"width": 360,
"height": 360,
"te": 18
},
"i2c": {
"type": "i2c",
"sda": 11,
"scl": 10
},
"touch": {
"type": "cst816s",
"int": 4,
"rst": 1,
"width": 360,
"height": 360
}
}