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.
33 lines
1.6 KiB
Plaintext
33 lines
1.6 KiB
Plaintext
# Board-specific overrides for the Seeed XIAO ESP32-C6, layered on top
|
|
# of sdkconfig.defaults (which targets the 8MB ESP32-C6-DevKitC-1 dev
|
|
# board) via SDKCONFIG_DEFAULTS -- see build_for_board.sh, which is the
|
|
# supported way to build with this file. Don't set this via a plain
|
|
# `idf.py menuconfig` on the default build; that writes straight into
|
|
# the shared sdkconfig, not this file.
|
|
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
|
|
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions_xiao.csv"
|
|
CONFIG_PARTITION_TABLE_FILENAME="partitions_xiao.csv"
|
|
|
|
# Powers the XIAO's RF switch and selects its onboard antenna -- without
|
|
# this the softAP/STA radio doesn't reliably reach the antenna at all.
|
|
# See the Kconfig help text (FRAME_XIAO_ANTENNA_INIT) for why.
|
|
CONFIG_FRAME_XIAO_ANTENNA_INIT=y
|
|
|
|
# EPD wiring: the dev-board defaults (DC=9, RST=10, BUSY=11) aren't
|
|
# physically exposed on the XIAO -- only GPIO 0,1,2,16,17,18,19,20,21,
|
|
# 22,23 are broken out, and 18/19/20 are already the panel's SPI pins
|
|
# (CS/MOSI/CLK) while 0/1/2 are the buttons. Remapped to three of the
|
|
# remaining free pins; see docs/hardware.md for the full XIAO wiring
|
|
# table.
|
|
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
|