Skip to content

Commit 8f88300

Browse files
author
Scott Powell
committed
* T3S3 variants, ui-new
1 parent c30a103 commit 8f88300

File tree

7 files changed

+23
-5
lines changed

7 files changed

+23
-5
lines changed

variants/generic_espnow/platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ build_flags =
6060
; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
6161
; NOTE: DO NOT ENABLE --> -D ESPNOW_DEBUG_LOGGING=1
6262
build_src_filter = ${Generic_ESPNOW.build_src_filter}
63-
+<../examples/companion_radio>
63+
+<../examples/companion_radio/*.cpp>
6464
lib_deps =
6565
${Generic_ESPNOW.lib_deps}
6666
densaugeo/base64 @ ~1.4.0

variants/lilygo_t3s3/platformio.ini

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,17 @@ lib_deps =
8989
extends = LilyGo_T3S3_sx1262
9090
build_flags =
9191
${LilyGo_T3S3_sx1262.build_flags}
92+
-I examples/companion_radio/ui-new
9293
-D DISPLAY_CLASS=SSD1306Display
9394
-D MAX_CONTACTS=100
9495
-D MAX_GROUP_CHANNELS=8
9596
; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
9697
; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
9798
build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
9899
+<helpers/ui/SSD1306Display.cpp>
99-
+<../examples/companion_radio>
100+
+<helpers/ui/MomentaryButton.cpp>
101+
+<../examples/companion_radio/*.cpp>
102+
+<../examples/companion_radio/ui-new/*.cpp>
100103
lib_deps =
101104
${LilyGo_T3S3_sx1262.lib_deps}
102105
densaugeo/base64 @ ~1.4.0
@@ -105,6 +108,7 @@ lib_deps =
105108
extends = LilyGo_T3S3_sx1262
106109
build_flags =
107110
${LilyGo_T3S3_sx1262.build_flags}
111+
-I examples/companion_radio/ui-new
108112
-D DISPLAY_CLASS=SSD1306Display
109113
-D MAX_CONTACTS=100
110114
-D MAX_GROUP_CHANNELS=8
@@ -116,7 +120,9 @@ build_flags =
116120
build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
117121
+<helpers/esp32/*.cpp>
118122
+<helpers/ui/SSD1306Display.cpp>
119-
+<../examples/companion_radio>
123+
+<helpers/ui/MomentaryButton.cpp>
124+
+<../examples/companion_radio/*.cpp>
125+
+<../examples/companion_radio/ui-new/*.cpp>
120126
lib_deps =
121127
${LilyGo_T3S3_sx1262.lib_deps}
122128
densaugeo/base64 @ ~1.4.0

variants/lilygo_t3s3/target.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ SensorManager sensors;
1313

1414
#ifdef DISPLAY_CLASS
1515
DISPLAY_CLASS display;
16+
MomentaryButton user_btn(PIN_USER_BTN, 1000, true);
1617
#endif
1718

1819
#ifndef LORA_CR

variants/lilygo_t3s3/target.h

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

1415
extern ESP32Board board;
@@ -18,6 +19,7 @@ extern SensorManager 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_t3s3_sx1276/platformio.ini

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,17 @@ extends = LilyGo_T3S3_sx1276
8888
upload_speed = 115200
8989
build_flags =
9090
${LilyGo_T3S3_sx1276.build_flags}
91+
-I examples/companion_radio/ui-new
9192
-D DISPLAY_CLASS=SSD1306Display
9293
-D MAX_CONTACTS=100
9394
-D MAX_GROUP_CHANNELS=8
9495
-D MESH_PACKET_LOGGING=1
9596
-D MESH_DEBUG=1
9697
build_src_filter = ${LilyGo_T3S3_sx1276.build_src_filter}
9798
+<helpers/ui/SSD1306Display.cpp>
98-
+<../examples/companion_radio>
99+
+<helpers/ui/MomentaryButton.cpp>
100+
+<../examples/companion_radio/*.cpp>
101+
+<../examples/companion_radio/ui-new/*.cpp>
99102
lib_deps =
100103
${LilyGo_T3S3_sx1276.lib_deps}
101104
densaugeo/base64 @ ~1.4.0
@@ -104,6 +107,7 @@ lib_deps =
104107
extends = LilyGo_T3S3_sx1276
105108
build_flags =
106109
${LilyGo_T3S3_sx1276.build_flags}
110+
-I examples/companion_radio/ui-new
107111
-D DISPLAY_CLASS=SSD1306Display
108112
-D MAX_CONTACTS=100
109113
-D MAX_GROUP_CHANNELS=8
@@ -115,7 +119,9 @@ build_flags =
115119
build_src_filter = ${LilyGo_T3S3_sx1276.build_src_filter}
116120
+<helpers/esp32/*.cpp>
117121
+<helpers/ui/SSD1306Display.cpp>
118-
+<../examples/companion_radio>
122+
+<helpers/ui/MomentaryButton.cpp>
123+
+<../examples/companion_radio/*.cpp>
124+
+<../examples/companion_radio/ui-new/*.cpp>
119125
lib_deps =
120126
${LilyGo_T3S3_sx1276.lib_deps}
121127
densaugeo/base64 @ ~1.4.0

variants/lilygo_t3s3_sx1276/target.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ SensorManager sensors;
1818

1919
#ifdef DISPLAY_CLASS
2020
DISPLAY_CLASS display;
21+
MomentaryButton user_btn(PIN_USER_BTN, 1000, true);
2122
#endif
2223

2324
bool radio_init() {

variants/lilygo_t3s3_sx1276/target.h

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

1415
extern ESP32Board board;
@@ -18,6 +19,7 @@ extern SensorManager sensors;
1819

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

2325
bool radio_init();

0 commit comments

Comments
 (0)