diff --git a/variants/heltec_vision_master_t190/platformio.ini b/variants/heltec_vision_master_t190/platformio.ini index 026e1e18..ecf71409 100644 --- a/variants/heltec_vision_master_t190/platformio.ini +++ b/variants/heltec_vision_master_t190/platformio.ini @@ -44,6 +44,7 @@ lib_deps = extends = Heltec_Vision_Master_T190_base build_flags = ${Heltec_Vision_Master_T190_base.build_flags} + -I examples/companion_radio/ui-new -D MAX_CONTACTS=100 -D MAX_GROUP_CHANNELS=8 -D BLE_PIN_CODE=123456 ; dynamic, random PIN @@ -51,7 +52,8 @@ build_flags = -D OFFLINE_QUEUE_SIZE=256 build_src_filter = ${Heltec_Vision_Master_T190_base.build_src_filter} + - +<../examples/companion_radio> + +<../examples/companion_radio/*.cpp> + +<../examples/companion_radio/ui-new/*.cpp> lib_deps = ${Heltec_Vision_Master_T190_base.lib_deps} densaugeo/base64 @ ~1.4.0 diff --git a/variants/heltec_vision_master_t190/target.cpp b/variants/heltec_vision_master_t190/target.cpp index 9e13d36b..b9357594 100644 --- a/variants/heltec_vision_master_t190/target.cpp +++ b/variants/heltec_vision_master_t190/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_t190/target.h b/variants/heltec_vision_master_t190/target.h index 9dfab3d8..8a5fc716 100644 --- a/variants/heltec_vision_master_t190/target.h +++ b/variants/heltec_vision_master_t190/target.h @@ -9,6 +9,7 @@ #include #ifdef DISPLAY_CLASS #include +#include #endif extern HeltecT190Board board; @@ -18,6 +19,7 @@ extern SensorManager sensors; #ifdef DISPLAY_CLASS extern DISPLAY_CLASS display; +extern MomentaryButton user_btn; #endif bool radio_init();