Stabilize T-Beam full companion startup

This commit is contained in:
mikecarper committed 2026-08-16 11:00:55 -07:00
1 parent bcedfdd019
commit a514b2a6d5
8 files changed
+138 -48

No files matched your search

+1
View File
@@ -52,6 +52,7 @@ build_flags =
; User interface
-D PIN_USER_BTN=17
-D PIN_WIFI_BTN=0
build_src_filter = ${esp32_base.build_src_filter}
+<../variants/lilygo_tbeam_1w>
+6
View File
@@ -8,6 +8,12 @@ TBeam1WBoard board;
#ifdef DISPLAY_CLASS
DISPLAY_CLASS display;
MomentaryButton user_btn(PIN_USER_BTN, 1000, true);
#ifdef PIN_WIFI_BTN
// The BOOT switch is also a normal active-low GPIO after startup. Treat it
// as a dedicated single-click control; the board supplies a 10K pull-up,
// and enabling the ESP32 pull-up as well keeps the input deterministic.
MomentaryButton wifi_btn(PIN_WIFI_BTN, 0, true, true, false);
#endif
#endif
static SPIClass spi;
+3 -1
View File
@@ -13,6 +13,9 @@
#include <helpers/ui/MomentaryButton.h>
extern DISPLAY_CLASS display;
extern MomentaryButton user_btn;
#ifdef PIN_WIFI_BTN
extern MomentaryButton wifi_btn;
#endif
#endif
extern TBeam1WBoard board;
@@ -22,4 +25,3 @@ extern EnvironmentSensorManager sensors;
bool radio_init();
mesh::LocalIdentity radio_new_identity();