feat(registry): i2cPmic — a board declares its power-management IC

Board DATA like spiPanelId: the bridge that supports the declared type
instantiates the model at the given address and setBatteryVoltage drives it.
First consumer is the M5Stack Core's IP5306.
This commit is contained in:
David Montero Crespo 2026-08-12 21:01:54 +02:00
parent 730652bfef
commit c89b0a6f39
1 changed files with 6 additions and 0 deletions

View File

@ -121,6 +121,12 @@ export interface ProBoardDef {
/** Board reads a battery through its bridge (setBatteryVoltage): shows the
* canvas-header charge slider, so low-battery code paths can be reached. */
builtInBattery?: boolean;
/** Power-management IC on the internal I2C bus, when the board carries one
* the vendor library probes. Board DATA like spiPanelId: the bridge that
* supports the type instantiates the model at the given address, and
* setBatteryVoltage drives it. The M5Stack Core is
* { type: 'ip5306', addr: 0x75 }. */
i2cPmic?: { type: 'ip5306'; addr?: number };
/** Built-in peripheral attachment for a RUNNING board (LCD decoder onto the
* element's own canvas, speaker, on-board button/keyboard event forwarding).
* Called shortly after run start with the board's DOM element plus its