Added triple-press GPS toggle button changes for select ESP32 devices (#2617)

* Added triple-press GPS toggle button changes

* Revert edits to extensions.json

* comma'd

---------

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
Co-authored-by: code8buster <communismisgreat@national.shitposting.agency>
This commit is contained in:
tropho23
2023-07-17 18:55:40 -05:00
committed by GitHub
co-authored by Ben Meadors code8buster
parent 541291cc70
commit 5995c7060d
6 changed files with 12 additions and 3 deletions
+2 -1
View File
@@ -2,4 +2,5 @@
extends = esp32_base
board = ttgo-lora32-v21
build_flags =
${esp32_base.build_flags} -D TLORA_V2_1_16 -I variants/tlora_v2_1_16
${esp32_base.build_flags} -D TLORA_V2_1_16 -I variants/tlora_v2_1_16
-DGPS_POWER_TOGGLE ; comment this line to disable triple press function on the user button to turn off gps entirely.
+2
View File
@@ -3,6 +3,8 @@
#define GPS_RX_PIN 15 // per @der_bear on the forum, 36 is incorrect for this board type and 15 is a better pick
#define GPS_TX_PIN 13
#define PIN_GPS_EN 19 // GPS power enable pin
#define BATTERY_PIN 35
#define ADC_CHANNEL ADC1_GPIO35_CHANNEL
#define BATTERY_SENSE_SAMPLES 30