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

@@ -29,8 +29,9 @@
// code)
#endif
#define BATTERY_PIN 35 // A battery voltage measurement pin, voltage divider connected here to measure battery voltage
#define BATTERY_PIN 35 // A battery voltage measurement pin, voltage divider connected here to measure battery voltage
#define ADC_CHANNEL ADC1_GPIO35_CHANNEL
#define BATTERY_SENSE_SAMPLES 15 // Set the number of samples, It has an effect of increasing sensitivity.
#define ADC_MULTIPLIER 2
#define USE_SH1107_128_64
#define USE_SH1107_128_64