.
├── platformio.ini
├── boards
├── [board]
│ └── interface.cpp
├── pinouts
│ ├── pins_arduino.h
│ └── [board].h
├── [board].json
└── [board].ini
...
(Replace [board] with the board name)
This is where you will put the flag that will include your boards pinouts header.
This is where you put the flags and pinouts to the board. Look at other boards for whats needed. Here is an official example and what we are actually using here: https://github.com/espressif/arduino-esp32/blob/master/variants/esp32s3/pins_arduino.h
This is where you do the board specific setup code
This is the board config. Look at other boards for whats needed. Here is an offical example and what we are actually using here: https://github.com/platformio/platform-espressif32/blob/master/boards/esp32-s3-devkitc-1.json
This is the platformio config for the device. Look at other boards for whats needed.