Enable (new) ADC and GPS capability. (#2792)

* Enable (new) ADC and GPS capability.
* Make Picomputer a canon device and define ADC for new board revision
This commit is contained in:
Thomas Göttgens
2023-09-18 11:38:33 +02:00
committed by GitHub
parent 8b82ae6fe3
commit a1514b8b64
2 changed files with 7 additions and 2 deletions

View File

@@ -5,9 +5,14 @@
#define PIN_BUZZER 43
#define HAS_GPS 0
#define HAS_WIRE 0
#define BATTERY_PIN ADC1_CHANNEL_1_GPIO_NUM // 2
// A battery voltage measurement pin, voltage divider connected here to measure battery voltage
// ratio of voltage divider = 3.0 (R11=200k, R7=100k)
#define ADC_MULTIPLIER 3.1 // 3.0 with correction of display undervoltage.
#define ADC_CHANNEL ADC1_GPIO2_CHANNEL
#define USE_RF95 // RFM95/SX127x
#define RF95_SCK SCK // 21