Skip to content

Commit 2477d60

Browse files
author
Scott Powell
committed
* TBeam variants: ui-new
1 parent 8f88300 commit 2477d60

File tree

9 files changed

+18
-0
lines changed

9 files changed

+18
-0
lines changed

variants/lilygo_tbeam_SX1262/platformio.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ extends = LilyGo_TBeam_SX1262
3737
board_build.upload.maximum_ram_size=2000000
3838
build_flags =
3939
${LilyGo_TBeam_SX1262.build_flags}
40+
-I examples/companion_radio/ui-new
4041
-D MAX_CONTACTS=100
4142
-D MAX_GROUP_CHANNELS=8
4243
-D BLE_PIN_CODE=123456
@@ -49,7 +50,9 @@ build_flags =
4950
; -D MESH_DEBUG=1
5051
build_src_filter = ${LilyGo_TBeam_SX1262.build_src_filter}
5152
+<helpers/esp32/*.cpp>
53+
+<helpers/ui/MomentaryButton.cpp>
5254
+<../examples/companion_radio/*.cpp>
55+
+<../examples/companion_radio/ui-new/*.cpp>
5356
lib_deps =
5457
${LilyGo_TBeam_SX1262.lib_deps}
5558
densaugeo/base64 @ ~1.4.0

variants/lilygo_tbeam_SX1262/target.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ AutoDiscoverRTCClock rtc_clock(fallback_clock);
2525

2626
#ifdef DISPLAY_CLASS
2727
DISPLAY_CLASS display;
28+
MomentaryButton user_btn(PIN_USER_BTN, 1000, true);
2829
#endif
2930

3031
bool radio_init() {

variants/lilygo_tbeam_SX1262/target.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <helpers/sensors/EnvironmentSensorManager.h>
1010
#ifdef DISPLAY_CLASS
1111
#include <helpers/ui/SSD1306Display.h>
12+
#include <helpers/ui/MomentaryButton.h>
1213
#endif
1314

1415
extern TBeamBoard board;
@@ -18,6 +19,7 @@ extern EnvironmentSensorManager sensors;
1819

1920
#ifdef DISPLAY_CLASS
2021
extern DISPLAY_CLASS display;
22+
extern MomentaryButton user_btn;
2123
#endif
2224

2325
bool radio_init();

variants/lilygo_tbeam_SX1276/platformio.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ extends = LilyGo_TBeam_SX1276
3636
board_build.upload.maximum_ram_size=2000000
3737
build_flags =
3838
${LilyGo_TBeam_SX1276.build_flags}
39+
-I examples/companion_radio/ui-new
3940
-D MAX_CONTACTS=100
4041
-D MAX_GROUP_CHANNELS=8
4142
-D BLE_PIN_CODE=123456
@@ -46,7 +47,9 @@ build_flags =
4647
; -D MESH_DEBUG=1
4748
build_src_filter = ${LilyGo_TBeam_SX1276.build_src_filter}
4849
+<helpers/esp32/*.cpp>
50+
+<helpers/ui/MomentaryButton.cpp>
4951
+<../examples/companion_radio/*.cpp>
52+
+<../examples/companion_radio/ui-new/*.cpp>
5053
lib_deps =
5154
${LilyGo_TBeam_SX1276.lib_deps}
5255
densaugeo/base64 @ ~1.4.0

variants/lilygo_tbeam_SX1276/target.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ AutoDiscoverRTCClock rtc_clock(fallback_clock);
2525

2626
#ifdef DISPLAY_CLASS
2727
DISPLAY_CLASS display;
28+
MomentaryButton user_btn(PIN_USER_BTN, 1000, true);
2829
#endif
2930

3031
bool radio_init() {

variants/lilygo_tbeam_SX1276/target.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <helpers/sensors/EnvironmentSensorManager.h>
1010
#ifdef DISPLAY_CLASS
1111
#include <helpers/ui/SSD1306Display.h>
12+
#include <helpers/ui/MomentaryButton.h>
1213
#endif
1314

1415
extern TBeamBoard board;
@@ -18,6 +19,7 @@ extern EnvironmentSensorManager sensors;
1819

1920
#ifdef DISPLAY_CLASS
2021
extern DISPLAY_CLASS display;
22+
extern MomentaryButton user_btn;
2123
#endif
2224

2325
bool radio_init();

variants/lilygo_tbeam_supreme_SX1262/platformio.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ lib_deps =
7373
extends = T_Beam_S3_Supreme_SX1262
7474
build_flags =
7575
${T_Beam_S3_Supreme_SX1262.build_flags}
76+
-I examples/companion_radio/ui-new
7677
-D MAX_CONTACTS=100
7778
-D MAX_GROUP_CHANNELS=8
7879
-D BLE_PIN_CODE=123456
@@ -82,7 +83,9 @@ build_flags =
8283
; -D MESH_DEBUG=1
8384
build_src_filter = ${T_Beam_S3_Supreme_SX1262.build_src_filter}
8485
+<helpers/esp32/*.cpp>
86+
+<helpers/ui/MomentaryButton.cpp>
8587
+<../examples/companion_radio/*.cpp>
88+
+<../examples/companion_radio/ui-new/*.cpp>
8689
lib_deps =
8790
${T_Beam_S3_Supreme_SX1262.lib_deps}
8891
densaugeo/base64 @ ~1.4.0

variants/lilygo_tbeam_supreme_SX1262/target.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ TBeamBoard board;
55

66
#ifdef DISPLAY_CLASS
77
DISPLAY_CLASS display;
8+
MomentaryButton user_btn(PIN_USER_BTN, 1000, true);
89
#endif
910

1011
static SPIClass spi;

variants/lilygo_tbeam_supreme_SX1262/target.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#ifdef DISPLAY_CLASS
1212
#include <helpers/ui/SH1106Display.h>
1313
extern DISPLAY_CLASS display;
14+
#include <helpers/ui/MomentaryButton.h>
15+
extern MomentaryButton user_btn;
1416
#endif
1517

1618
extern TBeamBoard board;

0 commit comments

Comments
 (0)