Skip to content

Commit 2e49eef

Browse files
committed
Adapt the new UI for heltec e290.
1 parent e6152f9 commit 2e49eef

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

variants/heltec_vision_master_e290/platformio.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ build_flags =
2323
-D Vision_Master_E290
2424
build_src_filter = ${esp32_base.build_src_filter}
2525
+<../variants/heltec_vision_master_e290>
26+
+<helpers/ui/MomentaryButton.cpp>
2627
lib_deps =
2728
${esp32_base.lib_deps}
2829
https://github.com/Quency-D/heltec-eink-modules/archive/563dd41fd850a1bc3039b8723da4f3a20fe1c800.zip
@@ -31,6 +32,7 @@ lib_deps =
3132
extends = Heltec_Vision_Master_E290_base
3233
build_flags =
3334
${Heltec_Vision_Master_E290_base.build_flags}
35+
-I examples/companion_radio/ui-new
3436
-D MAX_CONTACTS=100
3537
-D MAX_GROUP_CHANNELS=8
3638
-D DISPLAY_CLASS=E290Display
@@ -40,7 +42,8 @@ build_flags =
4042
build_src_filter = ${Heltec_Vision_Master_E290_base.build_src_filter}
4143
+<helpers/ui/E290Display.cpp>
4244
+<helpers/esp32/*.cpp>
43-
+<../examples/companion_radio>
45+
+<../examples/companion_radio/*.cpp>
46+
+<../examples/companion_radio/ui-new/*.cpp>
4447
lib_deps =
4548
${Heltec_Vision_Master_E290_base.lib_deps}
4649
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)