Skip to content

Commit 666b036

Browse files
committed
Adapt the new UI for heltec paper.
1 parent e6152f9 commit 666b036

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

variants/heltec_wireless_paper/platformio.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ build_flags =
2929
-D WIRELESS_PAPER
3030
build_src_filter = ${esp32_base.build_src_filter}
3131
+<../variants/heltec_wireless_paper>
32+
+<helpers/ui/MomentaryButton.cpp>
3233
lib_deps =
3334
${esp32_base.lib_deps}
3435
https://github.com/todd-herbert/heltec-eink-modules/archive/9207eb6ab2b96f66298e0488740218c17b006af7.zip
@@ -37,6 +38,7 @@ lib_deps =
3738
extends = Heltec_Wireless_Paper_base
3839
build_flags =
3940
${Heltec_Wireless_Paper_base.build_flags}
41+
-I examples/companion_radio/ui-new
4042
-D MAX_CONTACTS=100
4143
-D MAX_GROUP_CHANNELS=8
4244
-D DISPLAY_CLASS=E213Display
@@ -46,7 +48,8 @@ build_flags =
4648
build_src_filter = ${Heltec_Wireless_Paper_base.build_src_filter}
4749
+<helpers/ui/E213Display.cpp>
4850
+<helpers/esp32/*.cpp>
49-
+<../examples/companion_radio>
51+
+<../examples/companion_radio/*.cpp>
52+
+<../examples/companion_radio/ui-new/*.cpp>
5053
lib_deps =
5154
${Heltec_Wireless_Paper_base.lib_deps}
5255
densaugeo/base64 @ ~1.4.0

variants/heltec_wireless_paper/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_wireless_paper/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 HeltecV3Board 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)