From cf6bb5c992ae0c7245576b7bb5f35459eef36093 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Wed, 18 Sep 2019 16:24:25 +0200 Subject: [PATCH] Heltecv2 battery monitoring disabled --- src/hal/heltecv2.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/hal/heltecv2.h b/src/hal/heltecv2.h index cc7de4d1..adb74981 100644 --- a/src/hal/heltecv2.h +++ b/src/hal/heltecv2.h @@ -20,9 +20,13 @@ #define HAS_LED LED_BUILTIN // white LED on board #define HAS_BUTTON KEY_BUILTIN // button "PROG" on board -#define BAT_MEASURE_ADC ADC2_GPIO13_CHANNEL // battery probe GPIO pin -#define BAT_MEASURE_ADC_UNIT 2 // ADC 2 -#define BAT_VOLTAGE_DIVIDER 2 // voltage divider 220k/100k on board +// caveat: activating ADC2 conflicts with Wifi in current arduino-esp32 +// see https://github.com/espressif/arduino-esp32/issues/3222 +// thus we must waiver of battery monitoring +//#define BAT_MEASURE_ADC ADC2_GPIO13_CHANNEL // battery probe GPIO pin +//#define BAT_MEASURE_ADC_UNIT 2 // ADC 2 +//#define BAT_VOLTAGE_DIVIDER 2 // voltage divider 220k/100k on board + #define EXT_POWER_SW Vext // switches battery power, Vext control 0 = on / 1 = off #define EXT_POWER_ON 0 //#define EXT_POWER_OFF 1