From c89b0a6f398042c3d0bdd1c03e5637e3c28a760e Mon Sep 17 00:00:00 2001 From: David Montero Crespo Date: Wed, 12 Aug 2026 21:01:54 +0200 Subject: [PATCH] =?UTF-8?q?feat(registry):=20i2cPmic=20=E2=80=94=20a=20boa?= =?UTF-8?q?rd=20declares=20its=20power-management=20IC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- frontend/src/lib/proBoardRegistry.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/lib/proBoardRegistry.ts b/frontend/src/lib/proBoardRegistry.ts index 166ba3bb..e9e9e27b 100644 --- a/frontend/src/lib/proBoardRegistry.ts +++ b/frontend/src/lib/proBoardRegistry.ts @@ -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