Skip to content

Commit cc065c8

Browse files
authored
Merge pull request #589 from fdlamotte/techo_new_ui
TEcho: New companion UI
2 parents 1b93cea + af72db6 commit cc065c8

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

variants/techo/platformio.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ build_src_filter = ${LilyGo_Techo.build_src_filter}
7373
+<helpers/nrf52/TechoBoard.cpp>
7474
+<helpers/nrf52/SerialBLEInterface.cpp>
7575
+<helpers/ui/GxEPDDisplay.cpp>
76+
+<helpers/ui/MomentaryButton.cpp>
7677
+<../examples/companion_radio>
7778
lib_deps =
7879
${LilyGo_Techo.lib_deps}

variants/techo/target.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ TechoSensorManager sensors = TechoSensorManager(nmea);
1616

1717
#ifdef DISPLAY_CLASS
1818
DISPLAY_CLASS display;
19+
MomentaryButton user_btn(PIN_USER_BTN, 1000, true);
1920
#endif
2021

2122
bool radio_init() {

variants/techo/target.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <helpers/sensors/LocationProvider.h>
1111
#ifdef DISPLAY_CLASS
1212
#include <helpers/ui/GxEPDDisplay.h>
13+
#include <helpers/ui/MomentaryButton.h>
1314
#endif
1415

1516
class TechoSensorManager : public SensorManager {
@@ -36,6 +37,7 @@ extern TechoSensorManager sensors;
3637

3738
#ifdef DISPLAY_CLASS
3839
extern DISPLAY_CLASS display;
40+
extern MomentaryButton user_btn;
3941
#endif
4042

4143
bool radio_init();

0 commit comments

Comments
 (0)