Add MicroNMEA to libs

This commit is contained in:
Just Call Me Koko
2023-08-30 16:29:06 -04:00
parent 0106081308
commit c7936b06f2
4 changed files with 23 additions and 4 deletions

View File

@@ -44,6 +44,13 @@ jobs:
ref: master
path: CustomAsyncTCP
- name: Install MicroNMEA
uses: actions/checkout@v2
with:
repository: stevemarple/MicroNMEA
ref: master
path: CustomMicroNMEA
- name: Install ESPAsyncWebServer
uses: actions/checkout@v2
with:

View File

@@ -8,7 +8,7 @@ HardwareSerial Serial2(2);
void GpsInterface::begin() {
Serial2.begin(9600, SERIAL_8N1, 4, 13);
Serial2.begin(9600, SERIAL_8N1, GPS_TX, GPS_RX);
MicroNMEA::sendSentence(Serial2, "$PSTMSETPAR,1201,0x00000042");
MicroNMEA::sendSentence(Serial2, "$PSTMSAVEPAR");

View File

@@ -3,6 +3,8 @@
#include <MicroNMEA.h>
#include "configs.h"
class GpsInterface {
public:
void begin();

View File

@@ -11,8 +11,8 @@
//// BOARD TARGETS
//#define MARAUDER_M5STICKC
//#define MARAUDER_MINI
#define MARAUDER_V4
//#define MARAUDER_V6
//#define MARAUDER_V4
#define MARAUDER_V6
//#define MARAUDER_KIT
//#define GENERIC_ESP32
//#define MARAUDER_FLIPPER
@@ -756,6 +756,16 @@
#endif
//// END EVIL PORTAL STUFF
////
//// GPS STUFF
#ifdef HAS_GPS
#ifdef MARAUDER_V6
#define GPS_TX 4
#define GPS_RX 13
#elif defined(MARAUDER_V4)
#define GPS_TX 4
#define GPS_RX 13
#endif
#endif
//// END GPS STUFF
#endif