Files
espresso_frame/firmware/sdkconfig.xiao
T
tfaour 7ea5c9a4fb
Build and push server image / build-and-push (push) Successful in 37s
Consolidate firmware UI; server learns board from the device, not a picker
All firmware-related controls (manual upload, Gitea repo URL,
auto-update checkbox, detected board, Update frame button) now live in
one "Firmware update" card instead of being split across the main
Settings form and a separate card.

The board variant used to pick a Gitea release asset was a dropdown
the user had to set by hand and could get wrong. The device now
reports it itself via a new X-Frame-Board header (CONFIG_FRAME_BOARD_NAME,
"devkit" by default, "xiao" in sdkconfig.xiao) on every /frame/config
poll, stored as device_board_variant -- the server learns it instead.
Update checks/applies are gated on the board being known, since there's
nothing to fetch until a device has checked in at least once.
2026-07-21 21:58:59 -04:00

35 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"
CONFIG_FRAME_BOARD_NAME="xiao"
# 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