Skip to content

Commit e6152f9

Browse files
author
Scott Powell
committed
* Xiao_s3_wio: ui-new
1 parent ed3f527 commit e6152f9

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

variants/xiao_s3_wio/platformio.ini

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ lib_deps =
7979
extends = Xiao_S3_WIO
8080
build_flags =
8181
${Xiao_S3_WIO.build_flags}
82+
-I examples/companion_radio/ui-new
8283
-D MAX_CONTACTS=100
8384
-D MAX_GROUP_CHANNELS=8
8485
-D BLE_PIN_CODE=123456
@@ -90,7 +91,9 @@ build_flags =
9091
build_src_filter = ${Xiao_S3_WIO.build_src_filter}
9192
+<helpers/ui/SSD1306Display.cpp>
9293
+<helpers/esp32/*.cpp>
93-
+<../examples/companion_radio>
94+
+<helpers/ui/MomentaryButton.cpp>
95+
+<../examples/companion_radio/*.cpp>
96+
+<../examples/companion_radio/ui-new/*.cpp>
9497
lib_deps =
9598
${Xiao_S3_WIO.lib_deps}
9699
densaugeo/base64 @ ~1.4.0
@@ -108,7 +111,7 @@ build_flags =
108111
; -D MESH_DEBUG=1
109112
build_src_filter = ${Xiao_S3_WIO.build_src_filter}
110113
+<helpers/esp32/*.cpp>
111-
+<../examples/companion_radio>
114+
+<../examples/companion_radio/*.cpp>
112115
lib_deps =
113116
${Xiao_S3_WIO.lib_deps}
114117
densaugeo/base64 @ ~1.4.0

variants/xiao_s3_wio/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/xiao_s3_wio/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)