mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-23 09:06:02 +00:00
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:
parent
8b82ae6fe3
commit
a1514b8b64
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user