Add a New Board
A board package lives in a single tree, boards/<BOARD>/: the ESP-VISION files at the top level and the MicroPython ESP32 port files under the boards/<BOARD>/port/ subdirectory. The build projects boards/<BOARD>/port/ onto ports/esp32/boards/<BOARD>/ of the generated MicroPython copy. Start from the TEMPLATE board.
MicroPython Port Side
In boards/<BOARD>/port/:
File |
Purpose |
|---|---|
|
|
|
MicroPython feature flags and USB strings. |
|
Board-specific ESP-IDF Kconfig overrides. |
|
Partition table. |
|
Upstream board manifest metadata. |
ESP-VISION Side
In boards/<BOARD>/:
File |
Purpose |
|---|---|
|
Pin assignments and board runtime constants. |
|
OpenMV |
|
Frozen Python modules. |
|
Board-specific camera backend. |
|
LCD panel and backlight implementation. |
|
SD card power and card-detect implementation. |
micropython.cmake automatically picks up camera.c, display.c, and sdcard.c from the board directory when present, and includes the board’s optional board.cmake.
Build and Flash
idf.py --board <NEW_BOARD> -p /dev/ttyACM0 build flash monitor
Note
This page is a starting outline. Detailed bring-up steps (sensor selection, PPA configuration, display timing) will be expanded.