Richard Corfield
2 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
11 additions and
2 deletions
-
variants/xiao_s3_wio/platformio.ini
-
variants/xiao_s3_wio/target.cpp
|
|
|
@ -6,7 +6,10 @@ board_build.mcu = esp32s3 |
|
|
|
build_flags = ${esp32_base.build_flags} |
|
|
|
${sensor_base.build_flags} |
|
|
|
-I variants/xiao_s3_wio |
|
|
|
-UENV_INCLUDE_GPS |
|
|
|
-D ENV_INCLUDE_GPS=1 |
|
|
|
-D PIN_GPS_RX=D6 |
|
|
|
-D PIN_GPS_TX=D7 |
|
|
|
-D PIN_GPS_EN=D2 |
|
|
|
-D SEEED_XIAO_S3 |
|
|
|
-D P_LORA_DIO_1=39 |
|
|
|
-D P_LORA_NSS=41 |
|
|
|
|
|
|
|
@ -14,7 +14,13 @@ WRAPPER_CLASS radio_driver(radio, board); |
|
|
|
|
|
|
|
ESP32RTCClock fallback_clock; |
|
|
|
AutoDiscoverRTCClock rtc_clock(fallback_clock); |
|
|
|
EnvironmentSensorManager sensors; |
|
|
|
#if ENV_INCLUDE_GPS |
|
|
|
#include <helpers/sensors/MicroNMEALocationProvider.h> |
|
|
|
MicroNMEALocationProvider nmea = MicroNMEALocationProvider(Serial1, &rtc_clock, GPS_RESET, GPS_EN); |
|
|
|
EnvironmentSensorManager sensors = EnvironmentSensorManager(nmea); |
|
|
|
#else |
|
|
|
EnvironmentSensorManager sensors; |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef DISPLAY_CLASS |
|
|
|
DISPLAY_CLASS display; |
|
|
|
|