Skip to content

Commit 3100685

Browse files
authored
Merge pull request #686 from Quency-D/new-ui-e213
New UI heltec e213.
2 parents bc8c95f + 4eaaeeb commit 3100685

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

variants/heltec_vision_master_e213/platformio.ini

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ build_flags =
2828
-D DISP_MOSI=6
2929
-D Vision_Master_E213
3030
build_src_filter = ${esp32_base.build_src_filter}
31-
+<../variants/heltec_vision_master_e213>
31+
+<../variants/heltec_vision_master_e213>
3232
lib_deps =
3333
${esp32_base.lib_deps}
3434
https://github.com/Quency-D/heltec-eink-modules/archive/563dd41fd850a1bc3039b8723da4f3a20fe1c800.zip
@@ -37,6 +37,7 @@ lib_deps =
3737
extends = Heltec_Vision_Master_E213_base
3838
build_flags =
3939
${Heltec_Vision_Master_E213_base.build_flags}
40+
-I examples/companion_radio/ui-new
4041
-D MAX_CONTACTS=100
4142
-D MAX_GROUP_CHANNELS=8
4243
-D DISPLAY_CLASS=E213Display
@@ -46,7 +47,8 @@ build_flags =
4647
build_src_filter = ${Heltec_Vision_Master_E213_base.build_src_filter}
4748
+<helpers/ui/E213Display.cpp>
4849
+<helpers/esp32/*.cpp>
49-
+<../examples/companion_radio>
50+
+<../examples/companion_radio/*.cpp>
51+
+<../examples/companion_radio/ui-new/*.cpp>
5052
lib_deps =
5153
${Heltec_Vision_Master_E213_base.lib_deps}
5254
densaugeo/base64 @ ~1.4.0

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

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