Use it
phpbm init lists this board and adds php-baremetal/boards-arduino to the project. In an existing project, require the package and name the board.
composer require php-baremetal/boards-arduino
"extra": { "baremetal": {"board":"arduino-nano-esp32"} }
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 | none | in the SDK |
| i2c | i2c |
|
ext-i2c |
Board file
The file as php-baremetal/boards-arduino 1.0.0 ships it.
{
"name": "Arduino Nano ESP32",
"chip": "esp32s3",
"psram": "octal",
"flash": "16MB",
"console": "usb-jtag",
"pins": {
"D0": 44,
"D1": 43,
"D2": 5,
"D3": 6,
"D4": 7,
"D5": 8,
"D6": 9,
"D7": 10,
"D8": 17,
"D9": 18,
"D10": 21,
"D11": 38,
"D12": 47,
"D13": 48,
"A0": 1,
"A1": 2,
"A2": 3,
"A3": 4,
"A4": 11,
"A5": 12,
"A6": 13,
"A7": 14,
"LED_RED": 46,
"LED_GREEN": 0,
"LED_BLUE": 45,
"LED_BUILTIN": 48,
"LEDR": 46,
"LEDG": 0,
"LEDB": 45,
"TX": 43,
"RX": 44,
"SS": 21,
"MOSI": 38,
"MISO": 47,
"SCK": 48,
"SDA": 11,
"SCL": 12
},
"network": {
"type": "wifi"
},
"i2c": {
"type": "i2c",
"sda": "A4",
"scl": "A5"
}
}