From 37d945a0ea53e898e57f982a03973e87581a3dc0 Mon Sep 17 00:00:00 2001 From: free-x Date: Tue, 9 Sep 2025 13:07:16 +0200 Subject: [PATCH] intermediate GPS 2.0 base --- lib/hardware/GwM5Base.h | 7 ++++++- webinstall/build.yaml | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/hardware/GwM5Base.h b/lib/hardware/GwM5Base.h index a3284ee..edc3a9e 100644 --- a/lib/hardware/GwM5Base.h +++ b/lib/hardware/GwM5Base.h @@ -37,6 +37,11 @@ GWRESOURCE_USE(SERIAL1,M5_GPS_KIT) #define _GWI_SERIAL1 BOARD_LEFT1,-1,GWSERIAL_TYPE_UNI,9600 #endif +#ifdef M5_GPSV2_KIT + GWRESOURCE_USE(BASE,M5_GPS_KIT) + GWRESOURCE_USE(SERIAL1,M5_GPS_KIT) + #define _GWI_SERIAL1 BOARD_LEFT1,-1,GWSERIAL_TYPE_UNI,115200 +#endif //M5 ProtoHub #ifdef M5_PROTO_HUB @@ -68,4 +73,4 @@ #define ESP32_CAN_RX_PIN BOARD_LEFT2 #endif -#endif \ No newline at end of file +#endif diff --git a/webinstall/build.yaml b/webinstall/build.yaml index 0fcca66..8344026 100644 --- a/webinstall/build.yaml +++ b/webinstall/build.yaml @@ -664,6 +664,11 @@ types: label: "Gps Base" url: "https://docs.m5stack.com/en/atom/atomicgps" resource: serial + - value: M5_GPSV2_KIT + description: "M5 Stack Gps Base v2.0" + label: "Gps Base" + url: "https://docs.m5stack.com/en/atom/Atomic_GPS_Base_v2.0" + resource: serial - value: M5_PROTO_HUB description: "M5 Stack HUB PROTO" url: "https://docs.m5stack.com/en/atom/atomhub" @@ -749,4 +754,4 @@ config: - <<: *spisensors base: busname: "2" - bus: "2" \ No newline at end of file + bus: "2"