Add ADC channels to esp variants, plug code back in to make sure other archs work

This commit is contained in:
code8buster
2023-05-16 21:46:55 +02:00
committed by Thomas Göttgens
parent 6113a1fb70
commit 3219ad33ef
18 changed files with 75 additions and 36 deletions
+1 -2
View File
@@ -4,9 +4,8 @@
#define GPS_TX_PIN 13
#define BATTERY_PIN 35
#define ADC_CHANNEL ADC_GPIO35_CHANNEL
#define ADC_CHANNEL ADC1_GPIO35_CHANNEL
#define BATTERY_SENSE_SAMPLES 30
#define DEFAULT_VREF 1100
// ratio of voltage divider = 2.0 (R42=100k, R43=100k)
#define ADC_MULTIPLIER 2