File tree Expand file tree Collapse file tree 9 files changed +18
-0
lines changed
lilygo_tbeam_supreme_SX1262 Expand file tree Collapse file tree 9 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ extends = LilyGo_TBeam_SX1262
3737board_build.upload.maximum_ram_size =2000000
3838build_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
5051build_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>
5356lib_deps =
5457 ${LilyGo_TBeam_SX1262.lib_deps}
5558 densaugeo/base64 @ ~1.4.0
Original file line number Diff line number Diff 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
3031bool radio_init () {
Original file line number Diff line number Diff line change 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
1415extern 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
2325bool radio_init ();
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ extends = LilyGo_TBeam_SX1276
3636board_build.upload.maximum_ram_size =2000000
3737build_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
4748build_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>
5053lib_deps =
5154 ${LilyGo_TBeam_SX1276.lib_deps}
5255 densaugeo/base64 @ ~1.4.0
Original file line number Diff line number Diff 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
3031bool radio_init () {
Original file line number Diff line number Diff line change 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
1415extern 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
2325bool radio_init ();
Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ lib_deps =
7373extends = T_Beam_S3_Supreme_SX1262
7474build_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
8384build_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>
8689lib_deps =
8790 ${T_Beam_S3_Supreme_SX1262.lib_deps}
8891 densaugeo/base64 @ ~1.4.0
Original file line number Diff line number Diff 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
1011static SPIClass spi;
Original file line number Diff line number Diff line change 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
1618extern TBeamBoard board ;
You can’t perform that action at this time.
0 commit comments