Merge pull request #687 from Quency-D/new-ui-heltec-paper
New UI for heltec paper
This commit is contained in:
@@ -37,6 +37,7 @@ lib_deps =
|
|||||||
extends = Heltec_Wireless_Paper_base
|
extends = Heltec_Wireless_Paper_base
|
||||||
build_flags =
|
build_flags =
|
||||||
${Heltec_Wireless_Paper_base.build_flags}
|
${Heltec_Wireless_Paper_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=E213Display
|
-D DISPLAY_CLASS=E213Display
|
||||||
@@ -46,7 +47,8 @@ build_flags =
|
|||||||
build_src_filter = ${Heltec_Wireless_Paper_base.build_src_filter}
|
build_src_filter = ${Heltec_Wireless_Paper_base.build_src_filter}
|
||||||
+<helpers/ui/E213Display.cpp>
|
+<helpers/ui/E213Display.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_Wireless_Paper_base.lib_deps}
|
${Heltec_Wireless_Paper_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/E213Display.h>
|
#include <helpers/ui/E213Display.h>
|
||||||
|
#include <helpers/ui/MomentaryButton.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern HeltecV3Board board;
|
extern HeltecV3Board 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();
|
||||||
|
|||||||
Reference in New Issue
Block a user