From ca0ca9d0159d729a2192d69bf8d50bb4d617437c Mon Sep 17 00:00:00 2001 From: Thomas Faour Date: Mon, 20 Jul 2026 22:29:17 -0400 Subject: [PATCH] Firmware: enable battery ADC reporting by default for the XIAO build FRAME_BATTERY_ADC_GPIO was still at its off-by-default -1 in sdkconfig.xiao despite the XIAO being the one board this was designed for -- the status panel showed no battery line because the device never sent a report at all. Sets it to GPIO0, matching the settled shared-with-back-button design. --- firmware/sdkconfig.xiao | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/firmware/sdkconfig.xiao b/firmware/sdkconfig.xiao index 49c1af4..9885989 100644 --- a/firmware/sdkconfig.xiao +++ b/firmware/sdkconfig.xiao @@ -22,3 +22,11 @@ CONFIG_FRAME_XIAO_ANTENNA_INIT=y CONFIG_EPD_PIN_DC=16 CONFIG_EPD_PIN_RST=17 CONFIG_EPD_PIN_BUSY=21 + +# Battery reporting: shares GPIO0/D0/A0 with the back button (a +# high-impedance divider coexists fine with the button's pull-up and +# deep-sleep wake -- the firmware time-shares the pin). Requires the +# 2x200k divider from BAT+ to GND, midpoint to this pin, described in +# docs/hardware.md. Off by default project-wide since most builds (the +# DevKitC-1 dev board) have no battery wired at all. +CONFIG_FRAME_BATTERY_ADC_GPIO=0