From 458fb124e3c365a3b0d1c93c101d378ae88a0220 Mon Sep 17 00:00:00 2001 From: Max-Plastix Date: Mon, 17 Jan 2022 16:33:33 -0800 Subject: [PATCH] Added Deadzone circle. Attempt fix for low battery button --- main/configuration.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/main/configuration.h b/main/configuration.h index 29b8795..7029ca2 100644 --- a/main/configuration.h +++ b/main/configuration.h @@ -45,6 +45,13 @@ along with this program. If not, see . #define LORAWAN_CONFIRMED_EVERY 0 // Send confirmed message for ACK every N messages (0 means never, 1 means always, 2 every-other-one..) #define LORAWAN_SF DR_SF7 // Spreading factor (recommended DR_SF7 for network map purposes, DR_SF10 is slower/more-reach) +// Deadzone defines a circular area where no map packets will originate. +// Set Radius to zero to disable, or leave it enabled to select center position from menu. +// (Thanks to @Woutch for the name) +#define DEADZONE_LAT 34.5678 +#define DEADZONE_LON -123.4567 +#define DEADZONE_RADIUS_M 500 // meters + // Uncomment to enable discarding network settings by long pressing second button #define PREFS_DISCARD @@ -53,7 +60,7 @@ along with this program. If not, see . // ----------------------------------------------------------------------------- #define APP_NAME "Helium TTGO" -#define APP_VERSION "1.6.2 MaxP" +#define APP_VERSION "1.6.4 MaxP" // ----------------------------------------------------------------------------- // Less common Configuration iteams @@ -101,6 +108,14 @@ along with this program. If not, see . #define REQUIRE_RADIO true // If true, we will fail to start if the radio is not found + +// Wiring for I2C OLED display: +// +// Signal Header OLED +// 3V3 7 VCC +// GND 8 GND +// IO22(SCL) 9 SCL +// IO21(SDA) 10 SDA #define I2C_SDA 21 #define I2C_SCL 22 @@ -132,6 +147,7 @@ along with this program. If not, see . #elif defined(T_BEAM_V10) // Or T-Beam v1.1 #define GPS_RX_PIN 34 #define GPS_TX_PIN 12 +#define GPS_INT 37 // 30ns accurate timepulse from Neo-6M pin 3 #endif // -----------------------------------------------------------------------------