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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,7 @@
[env:picomputer-s3]
extends = esp32s3_base
board = bpi_picow_esp32_s3
board_level = extra
;OpenOCD flash method
;upload_protocol = esp-builtin
;Normal method

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