Browse Source
Merge pull request #679 from Quency-D/new-ui-e290
New UI heltec e290.
pull/685/head
ripplebiz
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
6 additions and
1 deletions
-
variants/heltec_vision_master_e290/platformio.ini
-
variants/heltec_vision_master_e290/target.cpp
-
variants/heltec_vision_master_e290/target.h
|
|
|
@ -31,6 +31,7 @@ lib_deps = |
|
|
|
extends = 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_GROUP_CHANNELS=8 |
|
|
|
-D DISPLAY_CLASS=E290Display |
|
|
|
@ -40,7 +41,8 @@ build_flags = |
|
|
|
build_src_filter = ${Heltec_Vision_Master_E290_base.build_src_filter} |
|
|
|
+<helpers/ui/E290Display.cpp> |
|
|
|
+<helpers/esp32/*.cpp> |
|
|
|
+<../examples/companion_radio> |
|
|
|
+<../examples/companion_radio/*.cpp> |
|
|
|
+<../examples/companion_radio/ui-new/*.cpp> |
|
|
|
lib_deps = |
|
|
|
${Heltec_Vision_Master_E290_base.lib_deps} |
|
|
|
densaugeo/base64 @ ~1.4.0 |
|
|
|
|
|
|
|
@ -19,6 +19,7 @@ SensorManager sensors; |
|
|
|
|
|
|
|
#ifdef DISPLAY_CLASS |
|
|
|
DISPLAY_CLASS display; |
|
|
|
MomentaryButton user_btn(PIN_USER_BTN, 1000, true); |
|
|
|
#endif |
|
|
|
|
|
|
|
bool radio_init() { |
|
|
|
|
|
|
|
@ -9,6 +9,7 @@ |
|
|
|
#include <helpers/SensorManager.h> |
|
|
|
#ifdef DISPLAY_CLASS |
|
|
|
#include <helpers/ui/E290Display.h> |
|
|
|
#include <helpers/ui/MomentaryButton.h> |
|
|
|
#endif |
|
|
|
|
|
|
|
extern HeltecE290Board board; |
|
|
|
@ -18,6 +19,7 @@ extern SensorManager sensors; |
|
|
|
|
|
|
|
#ifdef DISPLAY_CLASS |
|
|
|
extern DISPLAY_CLASS display; |
|
|
|
extern MomentaryButton user_btn; |
|
|
|
#endif |
|
|
|
|
|
|
|
bool radio_init(); |
|
|
|
|