Skip to content

Commit ec6d119

Browse files
committed
Adapt the new UI for heltec t190.
1 parent bb63f81 commit ec6d119

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

variants/heltec_vision_master_t190/platformio.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,16 @@ lib_deps =
4444
extends = Heltec_Vision_Master_T190_base
4545
build_flags =
4646
${Heltec_Vision_Master_T190_base.build_flags}
47+
-I examples/companion_radio/ui-new
4748
-D MAX_CONTACTS=100
4849
-D MAX_GROUP_CHANNELS=8
4950
-D BLE_PIN_CODE=123456 ; dynamic, random PIN
5051
-D BLE_DEBUG_LOGGING=1
5152
-D OFFLINE_QUEUE_SIZE=256
5253
build_src_filter = ${Heltec_Vision_Master_T190_base.build_src_filter}
5354
+<helpers/esp32/*.cpp>
54-
+<../examples/companion_radio>
55+
+<../examples/companion_radio/*.cpp>
56+
+<../examples/companion_radio/ui-new/*.cpp>
5557
lib_deps =
5658
${Heltec_Vision_Master_T190_base.lib_deps}
5759
densaugeo/base64 @ ~1.4.0

variants/heltec_vision_master_t190/target.cpp

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

2020
#ifdef DISPLAY_CLASS
2121
DISPLAY_CLASS display;
22+
MomentaryButton user_btn(PIN_USER_BTN, 1000, true);
2223
#endif
2324

2425
bool radio_init() {

variants/heltec_vision_master_t190/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/ST7789Display.h>
12+
#include <helpers/ui/MomentaryButton.h>
1213
#endif
1314

1415
extern HeltecT190Board 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)