From 4e2c5e5def11b359c8b368f6e807ff55647036a2 Mon Sep 17 00:00:00 2001 From: pki791 Date: Tue, 3 Feb 2026 12:35:32 +0100 Subject: [PATCH] Update to support battery voltage on D3 pin Added D3 pin as battery voltage input. This voltage divider is not present on a stock Xiao ESP32S3 board, but can be easy added, the D3 pin is not used and is near the battery pads. --- variants/xiao_s3_wio/platformio.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/variants/xiao_s3_wio/platformio.ini b/variants/xiao_s3_wio/platformio.ini index 22bb4090a..e40f29662 100644 --- a/variants/xiao_s3_wio/platformio.ini +++ b/variants/xiao_s3_wio/platformio.ini @@ -8,6 +8,7 @@ build_flags = ${esp32_base.build_flags} -I variants/xiao_s3_wio -UENV_INCLUDE_GPS -D SEEED_XIAO_S3 + -D PIN_VBAT_READ=D3 ; user added voltage divider -D P_LORA_DIO_1=39 -D P_LORA_NSS=41 -D P_LORA_RESET=42 ; RADIOLIB_NC