From ffcb131171b56e2ce18aebee2744599fc74be9d4 Mon Sep 17 00:00:00 2001 From: tropho23 <71199294+tropho23@users.noreply.github.com> Date: Mon, 4 Sep 2023 14:17:01 -0400 Subject: [PATCH] GPS toggle for RAK4631 (patch 2 of 2) (#2764) * Added triple-press GPS toggle button changes * Revert edits to extensions.json * comma'd * Update variant.h Added the line: // Define pin to enable GPS toggle (set GPIO to LOW) via user button triple press #define PIN_GPS_EN 34 // GPS power enable pin --------- Co-authored-by: Ben Meadors Co-authored-by: code8buster --- variants/rak4631/variant.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/variants/rak4631/variant.h b/variants/rak4631/variant.h index 258e4eb3c..88a396e69 100644 --- a/variants/rak4631/variant.h +++ b/variants/rak4631/variant.h @@ -227,6 +227,9 @@ SO GPIO 39/TXEN MAY NOT BE DEFINED FOR SUCCESSFUL OPERATION OF THE SX1262 - TG #define GPS_RX_PIN PIN_SERIAL1_RX #define GPS_TX_PIN PIN_SERIAL1_TX +// Define pin to enable GPS toggle (set GPIO to LOW) via user button triple press +#define PIN_GPS_EN 34 // GPS power enable pin + // RAK12002 RTC Module #define RV3028_RTC (uint8_t)0b1010010 @@ -273,4 +276,4 @@ SO GPIO 39/TXEN MAY NOT BE DEFINED FOR SUCCESSFUL OPERATION OF THE SX1262 - TG * Arduino objects - C++ only *----------------------------------------------------------------------------*/ -#endif \ No newline at end of file +#endif