mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Adapt the new UI for heltec e290.
This commit is contained in:
parent
e6152f9d6c
commit
2e49eef337
3 changed files with 7 additions and 1 deletions
|
|
@ -23,6 +23,7 @@ build_flags =
|
||||||
-D Vision_Master_E290
|
-D Vision_Master_E290
|
||||||
build_src_filter = ${esp32_base.build_src_filter}
|
build_src_filter = ${esp32_base.build_src_filter}
|
||||||
+<../variants/heltec_vision_master_e290>
|
+<../variants/heltec_vision_master_e290>
|
||||||
|
+<helpers/ui/MomentaryButton.cpp>
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${esp32_base.lib_deps}
|
${esp32_base.lib_deps}
|
||||||
https://github.com/Quency-D/heltec-eink-modules/archive/563dd41fd850a1bc3039b8723da4f3a20fe1c800.zip
|
https://github.com/Quency-D/heltec-eink-modules/archive/563dd41fd850a1bc3039b8723da4f3a20fe1c800.zip
|
||||||
|
|
@ -31,6 +32,7 @@ lib_deps =
|
||||||
extends = Heltec_Vision_Master_E290_base
|
extends = Heltec_Vision_Master_E290_base
|
||||||
build_flags =
|
build_flags =
|
||||||
${Heltec_Vision_Master_E290_base.build_flags}
|
${Heltec_Vision_Master_E290_base.build_flags}
|
||||||
|
-I examples/companion_radio/ui-new
|
||||||
-D MAX_CONTACTS=100
|
-D MAX_CONTACTS=100
|
||||||
-D MAX_GROUP_CHANNELS=8
|
-D MAX_GROUP_CHANNELS=8
|
||||||
-D DISPLAY_CLASS=E290Display
|
-D DISPLAY_CLASS=E290Display
|
||||||
|
|
@ -40,7 +42,8 @@ build_flags =
|
||||||
build_src_filter = ${Heltec_Vision_Master_E290_base.build_src_filter}
|
build_src_filter = ${Heltec_Vision_Master_E290_base.build_src_filter}
|
||||||
+<helpers/ui/E290Display.cpp>
|
+<helpers/ui/E290Display.cpp>
|
||||||
+<helpers/esp32/*.cpp>
|
+<helpers/esp32/*.cpp>
|
||||||
+<../examples/companion_radio>
|
+<../examples/companion_radio/*.cpp>
|
||||||
|
+<../examples/companion_radio/ui-new/*.cpp>
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${Heltec_Vision_Master_E290_base.lib_deps}
|
${Heltec_Vision_Master_E290_base.lib_deps}
|
||||||
densaugeo/base64 @ ~1.4.0
|
densaugeo/base64 @ ~1.4.0
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ SensorManager sensors;
|
||||||
|
|
||||||
#ifdef DISPLAY_CLASS
|
#ifdef DISPLAY_CLASS
|
||||||
DISPLAY_CLASS display;
|
DISPLAY_CLASS display;
|
||||||
|
MomentaryButton user_btn(PIN_USER_BTN, 1000, true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool radio_init() {
|
bool radio_init() {
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
#include <helpers/SensorManager.h>
|
#include <helpers/SensorManager.h>
|
||||||
#ifdef DISPLAY_CLASS
|
#ifdef DISPLAY_CLASS
|
||||||
#include <helpers/ui/E290Display.h>
|
#include <helpers/ui/E290Display.h>
|
||||||
|
#include <helpers/ui/MomentaryButton.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern HeltecE290Board board;
|
extern HeltecE290Board board;
|
||||||
|
|
@ -18,6 +19,7 @@ extern SensorManager sensors;
|
||||||
|
|
||||||
#ifdef DISPLAY_CLASS
|
#ifdef DISPLAY_CLASS
|
||||||
extern DISPLAY_CLASS display;
|
extern DISPLAY_CLASS display;
|
||||||
|
extern MomentaryButton user_btn;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool radio_init();
|
bool radio_init();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue