mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-29 05:01:54 +00:00
Migrate esp32 families to pioarduino platform
This commit is contained in:
@@ -8,13 +8,9 @@ board_build.mcu = esp32s3
|
||||
upload_protocol = esptool
|
||||
;upload_port = /dev/ttyACM0
|
||||
upload_speed = 921600
|
||||
build_unflags =
|
||||
${esp32s3_base.build_unflags}
|
||||
-DARDUINO_USB_MODE=1
|
||||
build_flags =
|
||||
${esp32s3_base.build_flags}
|
||||
-D STATION_G2
|
||||
-I variants/esp32s3/station-g2
|
||||
-DBOARD_HAS_PSRAM
|
||||
-DSTATION_G2
|
||||
-DARDUINO_USB_MODE=0
|
||||
|
||||
@@ -42,7 +42,7 @@ Board Information: https://wiki.uniteng.com/en/meshtastic/station-g2
|
||||
|
||||
/*
|
||||
#define BATTERY_PIN 4 // A battery voltage measurement pin, voltage divider connected here to measure battery voltage
|
||||
#define ADC_CHANNEL ADC1_GPIO4_CHANNEL
|
||||
#define ADC_CHANNEL ADC_CHANNEL_3
|
||||
#define ADC_MULTIPLIER 4
|
||||
#define BATTERY_SENSE_SAMPLES 15 // Set the number of samples, It has an effect of increasing sensitivity.
|
||||
#define BAT_FULLVOLT 8400
|
||||
|
||||
Reference in New Issue
Block a user