From 141579214104ab7123dfd4f405917a7bb1f4f336 Mon Sep 17 00:00:00 2001 From: Quency-D Date: Thu, 28 Aug 2025 14:29:56 +0800 Subject: [PATCH 1/3] Adapt the new UI for heltec e213. --- variants/heltec_vision_master_e213/platformio.ini | 8 ++++++-- variants/heltec_vision_master_e213/target.cpp | 1 + variants/heltec_vision_master_e213/target.h | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/variants/heltec_vision_master_e213/platformio.ini b/variants/heltec_vision_master_e213/platformio.ini index 29611dfa..6eb7e69a 100644 --- a/variants/heltec_vision_master_e213/platformio.ini +++ b/variants/heltec_vision_master_e213/platformio.ini @@ -28,7 +28,8 @@ build_flags = -D DISP_MOSI=6 -D Vision_Master_E213 build_src_filter = ${esp32_base.build_src_filter} - +<../variants/heltec_vision_master_e213> + +<../variants/heltec_vision_master_e213> + + lib_deps = ${esp32_base.lib_deps} https://github.com/Quency-D/heltec-eink-modules/archive/563dd41fd850a1bc3039b8723da4f3a20fe1c800.zip @@ -37,6 +38,7 @@ lib_deps = extends = Heltec_Vision_Master_E213_base build_flags = ${Heltec_Vision_Master_E213_base.build_flags} + -I examples/companion_radio/ui-new -D MAX_CONTACTS=100 -D MAX_GROUP_CHANNELS=8 -D DISPLAY_CLASS=E213Display @@ -46,7 +48,9 @@ build_flags = build_src_filter = ${Heltec_Vision_Master_E213_base.build_src_filter} + + - +<../examples/companion_radio> + +<../examples/companion_radio/*.cpp> + +<../examples/companion_radio/*.cpp> + +<../examples/companion_radio/ui-new/*.cpp> lib_deps = ${Heltec_Vision_Master_E213_base.lib_deps} densaugeo/base64 @ ~1.4.0 diff --git a/variants/heltec_vision_master_e213/target.cpp b/variants/heltec_vision_master_e213/target.cpp index dfba0103..23561850 100644 --- a/variants/heltec_vision_master_e213/target.cpp +++ b/variants/heltec_vision_master_e213/target.cpp @@ -19,6 +19,7 @@ SensorManager sensors; #ifdef DISPLAY_CLASS DISPLAY_CLASS display; +MomentaryButton user_btn(PIN_USER_BTN, 1000, true); #endif bool radio_init() { diff --git a/variants/heltec_vision_master_e213/target.h b/variants/heltec_vision_master_e213/target.h index ec113879..9ecdc212 100644 --- a/variants/heltec_vision_master_e213/target.h +++ b/variants/heltec_vision_master_e213/target.h @@ -9,6 +9,7 @@ #include #ifdef DISPLAY_CLASS #include +#include #endif extern HeltecE213Board board; @@ -18,6 +19,7 @@ extern SensorManager sensors; #ifdef DISPLAY_CLASS extern DISPLAY_CLASS display; +extern MomentaryButton user_btn; #endif bool radio_init(); From d5bec3d6a5cc7c10ae65d0ad5b72fceebe5b64de Mon Sep 17 00:00:00 2001 From: Quency-D Date: Thu, 28 Aug 2025 14:36:56 +0800 Subject: [PATCH 2/3] Remove duplicate rows. --- variants/heltec_vision_master_e213/platformio.ini | 1 - 1 file changed, 1 deletion(-) diff --git a/variants/heltec_vision_master_e213/platformio.ini b/variants/heltec_vision_master_e213/platformio.ini index 6eb7e69a..de5f2417 100644 --- a/variants/heltec_vision_master_e213/platformio.ini +++ b/variants/heltec_vision_master_e213/platformio.ini @@ -49,7 +49,6 @@ build_src_filter = ${Heltec_Vision_Master_E213_base.build_src_filter} + + +<../examples/companion_radio/*.cpp> - +<../examples/companion_radio/*.cpp> +<../examples/companion_radio/ui-new/*.cpp> lib_deps = ${Heltec_Vision_Master_E213_base.lib_deps} From 4eaaeebfcace926f039f3025c2fc665df6aa1d3f Mon Sep 17 00:00:00 2001 From: Quency-D Date: Fri, 29 Aug 2025 17:12:35 +0800 Subject: [PATCH 3/3] Remove duplicate rows. --- variants/heltec_vision_master_e213/platformio.ini | 1 - 1 file changed, 1 deletion(-) diff --git a/variants/heltec_vision_master_e213/platformio.ini b/variants/heltec_vision_master_e213/platformio.ini index de5f2417..9ca9b5ad 100644 --- a/variants/heltec_vision_master_e213/platformio.ini +++ b/variants/heltec_vision_master_e213/platformio.ini @@ -29,7 +29,6 @@ build_flags = -D Vision_Master_E213 build_src_filter = ${esp32_base.build_src_filter} +<../variants/heltec_vision_master_e213> - + lib_deps = ${esp32_base.lib_deps} https://github.com/Quency-D/heltec-eink-modules/archive/563dd41fd850a1bc3039b8723da4f3a20fe1c800.zip