richonguzman / LoRa_APRS_Tracker

LoRa APRS Tracker with Tx and Rx capabilities, Messages, Wx, Winlink and more...
MIT License
193 stars 54 forks source link

Button on TTGO_T_LORA32_V2 #146

Closed RobertMavric closed 2 weeks ago

RobertMavric commented 3 weeks ago

I made my tracker with TTGO_T_LORA32_V2 and I want to add button (GPIO4)+ GPS with 115200 without success. In "boards_pinout.h" under "TTGO_T_LORA32_V2_1_GPS) I added:

 #define BUTTON_PIN 4 //Button to GND
 #define HIGH_GPS_BAUDRATE //GPS with 115200

In the main program I can see it working with the One button library with the pullup resistor on and connected to GND. I also tried with an additional resistor, but it doesn't work.

#ifdef BUTTON_PIN
 OneButton userButton = OneButton(BUTTON_PIN, true, true);

Any idea what I'm doing wrong?

73 S56RT

richonguzman commented 3 weeks ago

define BUTTON_PIN 4

was this added on boards_pinout.h on line 61 to 77 or in between?

this should validate the button to work

please confirm fist the button part

RobertMavric commented 2 weeks ago

Apologies for the late reply. The button works but is sometimes unresponsive. Probably bad quality of my keys ;)