Browse Source
Merge pull request #589 from fdlamotte/techo_new_ui
TEcho: New companion UI
pull/598/head
ripplebiz
10 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
4 additions and
0 deletions
-
variants/techo/platformio.ini
-
variants/techo/target.cpp
-
variants/techo/target.h
|
|
|
@ -73,6 +73,7 @@ build_src_filter = ${LilyGo_Techo.build_src_filter} |
|
|
|
+<helpers/nrf52/TechoBoard.cpp> |
|
|
|
+<helpers/nrf52/SerialBLEInterface.cpp> |
|
|
|
+<helpers/ui/GxEPDDisplay.cpp> |
|
|
|
+<helpers/ui/MomentaryButton.cpp> |
|
|
|
+<../examples/companion_radio> |
|
|
|
lib_deps = |
|
|
|
${LilyGo_Techo.lib_deps} |
|
|
|
|
|
|
|
@ -16,6 +16,7 @@ TechoSensorManager sensors = TechoSensorManager(nmea); |
|
|
|
|
|
|
|
#ifdef DISPLAY_CLASS |
|
|
|
DISPLAY_CLASS display; |
|
|
|
MomentaryButton user_btn(PIN_USER_BTN, 1000, true); |
|
|
|
#endif |
|
|
|
|
|
|
|
bool radio_init() { |
|
|
|
|
|
|
|
@ -10,6 +10,7 @@ |
|
|
|
#include <helpers/sensors/LocationProvider.h> |
|
|
|
#ifdef DISPLAY_CLASS |
|
|
|
#include <helpers/ui/GxEPDDisplay.h> |
|
|
|
#include <helpers/ui/MomentaryButton.h> |
|
|
|
#endif |
|
|
|
|
|
|
|
class TechoSensorManager : public SensorManager { |
|
|
|
@ -36,6 +37,7 @@ extern TechoSensorManager sensors; |
|
|
|
|
|
|
|
#ifdef DISPLAY_CLASS |
|
|
|
extern DISPLAY_CLASS display; |
|
|
|
extern MomentaryButton user_btn; |
|
|
|
#endif |
|
|
|
|
|
|
|
bool radio_init(); |
|
|
|
|