Skip to content

Commit 980c344

Browse files
authored
Merge pull request #679 from Quency-D/new-ui-e290
New UI heltec e290.
2 parents a0b037e + 3fe2d48 commit 980c344

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

variants/heltec_vision_master_e290/platformio.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ lib_deps =
3131
extends = Heltec_Vision_Master_E290_base
3232
build_flags =
3333
${Heltec_Vision_Master_E290_base.build_flags}
34+
-I examples/companion_radio/ui-new
3435
-D MAX_CONTACTS=100
3536
-D MAX_GROUP_CHANNELS=8
3637
-D DISPLAY_CLASS=E290Display
@@ -40,7 +41,8 @@ build_flags =
4041
build_src_filter = ${Heltec_Vision_Master_E290_base.build_src_filter}
4142
+<helpers/ui/E290Display.cpp>
4243
+<helpers/esp32/*.cpp>
43-
+<../examples/companion_radio>
44+
+<../examples/companion_radio/*.cpp>
45+
+<../examples/companion_radio/ui-new/*.cpp>
4446
lib_deps =
4547
${Heltec_Vision_Master_E290_base.lib_deps}
4648
densaugeo/base64 @ ~1.4.0

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

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