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 01:40:42 -04:00
committed by Thomas Göttgens
parent 6113a1fb70
commit 3219ad33ef
18 changed files with 75 additions and 36 deletions

View File

@@ -4,6 +4,7 @@
#define BATTERY_PIN 35 // A battery voltage measurement pin, voltage divider connected here to measure battery voltage
// ratio of voltage divider = 2.0 (R42=100k, R43=100k)
#define ADC_MULTIPLIER 2.11 // 2.0 + 10% for correction of display undervoltage.
#define ADC_CHANNEL ADC1_GPIO35_CHANNEL
#define I2C_SDA 21 // I2C pins for this board
#define I2C_SCL 22