Skip to content

Commit 11a0bd6

Browse files
authored
Merge pull request #1035 from liquidraver/devt114
Add Heltec T114 GPS + timesync
2 parents 9bfbb77 + 07e58d8 commit 11a0bd6

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

variants/heltec_t114/platformio.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ build_flags = ${nrf52_base.build_flags}
2929
-D SX126X_RX_BOOSTED_GAIN=1
3030
-D DISPLAY_CLASS=NullDisplayDriver
3131
-D ST7789
32+
-D PIN_GPS_RX=39
33+
-D PIN_GPS_TX=37
34+
-D PIN_GPS_EN=21
35+
-D PIN_GPS_RESET=38
36+
-D PIN_GPS_RESET_ACTIVE=LOW
3237
build_src_filter = ${nrf52_base.build_src_filter}
3338
+<helpers/*.cpp>
3439
+<../variants/heltec_t114>

variants/heltec_t114/target.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ WRAPPER_CLASS radio_driver(radio, board);
1111

1212
VolatileRTCClock fallback_clock;
1313
AutoDiscoverRTCClock rtc_clock(fallback_clock);
14-
MicroNMEALocationProvider nmea = MicroNMEALocationProvider(Serial1);
14+
MicroNMEALocationProvider nmea = MicroNMEALocationProvider(Serial1, &rtc_clock);
1515
T114SensorManager sensors = T114SensorManager(nmea);
1616

1717
#ifdef DISPLAY_CLASS

variants/heltec_t114/variant.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@
117117

118118
#define GPS_EN (21)
119119
#define GPS_RESET (38)
120+
#define PIN_GPS_RX (39) // This is for bits going TOWARDS the GPS
121+
#define PIN_GPS_TX (37) // This is for bits going TOWARDS the CPU
120122

121123
////////////////////////////////////////////////////////////////////////////////
122124
// TFT

0 commit comments

Comments
 (0)