Browse Source
Merge pull request #1035 from liquidraver/devt114
Add Heltec T114 GPS + timesync
pull/1104/head
ripplebiz
7 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
8 additions and
1 deletions
-
variants/heltec_t114/platformio.ini
-
variants/heltec_t114/target.cpp
-
variants/heltec_t114/variant.h
|
|
|
@ -29,6 +29,11 @@ build_flags = ${nrf52_base.build_flags} |
|
|
|
-D SX126X_RX_BOOSTED_GAIN=1 |
|
|
|
-D DISPLAY_CLASS=NullDisplayDriver |
|
|
|
-D ST7789 |
|
|
|
-D PIN_GPS_RX=39 |
|
|
|
-D PIN_GPS_TX=37 |
|
|
|
-D PIN_GPS_EN=21 |
|
|
|
-D PIN_GPS_RESET=38 |
|
|
|
-D PIN_GPS_RESET_ACTIVE=LOW |
|
|
|
build_src_filter = ${nrf52_base.build_src_filter} |
|
|
|
+<helpers/*.cpp> |
|
|
|
+<../variants/heltec_t114> |
|
|
|
|
|
|
|
@ -11,7 +11,7 @@ WRAPPER_CLASS radio_driver(radio, board); |
|
|
|
|
|
|
|
VolatileRTCClock fallback_clock; |
|
|
|
AutoDiscoverRTCClock rtc_clock(fallback_clock); |
|
|
|
MicroNMEALocationProvider nmea = MicroNMEALocationProvider(Serial1); |
|
|
|
MicroNMEALocationProvider nmea = MicroNMEALocationProvider(Serial1, &rtc_clock); |
|
|
|
T114SensorManager sensors = T114SensorManager(nmea); |
|
|
|
|
|
|
|
#ifdef DISPLAY_CLASS |
|
|
|
|
|
|
|
@ -117,6 +117,8 @@ |
|
|
|
|
|
|
|
#define GPS_EN (21) |
|
|
|
#define GPS_RESET (38) |
|
|
|
#define PIN_GPS_RX (39) // This is for bits going TOWARDS the GPS
|
|
|
|
#define PIN_GPS_TX (37) // This is for bits going TOWARDS the CPU
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// TFT
|
|
|
|
|