From bb73555209323017da121ce4b6be5d5ba84db46e Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Wed, 19 Feb 2025 13:36:59 +0100 Subject: [PATCH] Expose INA219 measurement as battery voltage for Seeed Xiao ESP32S3 (#6070) * Expose INA219 measurement as battery voltage for Seeed Xiao ESP32S3 * Define BATTERY_PIN and don't block a random GPIO --- variants/seeed_xiao_s3/variant.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/variants/seeed_xiao_s3/variant.h b/variants/seeed_xiao_s3/variant.h index 8f9282a7a..d8dcbc8d4 100644 --- a/variants/seeed_xiao_s3/variant.h +++ b/variants/seeed_xiao_s3/variant.h @@ -36,6 +36,10 @@ L76K GPS Module Information : https://www.seeedstudio.com/L76K-GNSS-Module-for-S #define BUTTON_PIN 21 // This is the Program Button #define BUTTON_NEED_PULLUP +#define BATTERY_PIN -1 +#define ADC_CHANNEL ADC1_GPIO1_CHANNEL +#define BATTERY_SENSE_RESOLUTION_BITS 12 + /*Warning: https://www.seeedstudio.com/L76K-GNSS-Module-for-Seeed-Studio-XIAO-p-5864.html L76K Expansion Board can not directly used, L76K Reset Pin needs to override or physically remove it,