Browse Source
Merge pull request #624 from oltaco/new-companion-ui
Support NewUI on WioTrackerL1
pull/629/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/wio-tracker-l1/platformio.ini
-
variants/wio-tracker-l1/target.cpp
-
variants/wio-tracker-l1/target.h
|
|
@ -85,6 +85,7 @@ build_flags = ${WioTrackerL1.build_flags} |
|
|
build_src_filter = ${WioTrackerL1.build_src_filter} |
|
|
build_src_filter = ${WioTrackerL1.build_src_filter} |
|
|
+<helpers/nrf52/SerialBLEInterface.cpp> |
|
|
+<helpers/nrf52/SerialBLEInterface.cpp> |
|
|
+<../examples/companion_radio> |
|
|
+<../examples/companion_radio> |
|
|
|
|
|
+<helpers/ui/MomentaryButton.cpp> |
|
|
+<helpers/ui/buzzer.cpp> |
|
|
+<helpers/ui/buzzer.cpp> |
|
|
lib_deps = ${WioTrackerL1.lib_deps} |
|
|
lib_deps = ${WioTrackerL1.lib_deps} |
|
|
adafruit/RTClib @ ^2.1.3 |
|
|
adafruit/RTClib @ ^2.1.3 |
|
|
|
|
|
@ -16,6 +16,7 @@ WioTrackerL1SensorManager sensors = WioTrackerL1SensorManager(nmea); |
|
|
|
|
|
|
|
|
#ifdef DISPLAY_CLASS |
|
|
#ifdef DISPLAY_CLASS |
|
|
DISPLAY_CLASS display; |
|
|
DISPLAY_CLASS display; |
|
|
|
|
|
MomentaryButton user_btn(PIN_USER_BTN, 1000, true); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
bool radio_init() { |
|
|
bool radio_init() { |
|
|
|
|
|
@ -9,6 +9,7 @@ |
|
|
#include <helpers/ArduinoHelpers.h> |
|
|
#include <helpers/ArduinoHelpers.h> |
|
|
#ifdef DISPLAY_CLASS |
|
|
#ifdef DISPLAY_CLASS |
|
|
#include <helpers/ui/SH1106Display.h> |
|
|
#include <helpers/ui/SH1106Display.h> |
|
|
|
|
|
#include <helpers/ui/MomentaryButton.h> |
|
|
#endif |
|
|
#endif |
|
|
#include <helpers/sensors/EnvironmentSensorManager.h> |
|
|
#include <helpers/sensors/EnvironmentSensorManager.h> |
|
|
|
|
|
|
|
|
@ -38,6 +39,7 @@ extern AutoDiscoverRTCClock rtc_clock; |
|
|
extern WioTrackerL1SensorManager sensors; |
|
|
extern WioTrackerL1SensorManager sensors; |
|
|
#ifdef DISPLAY_CLASS |
|
|
#ifdef DISPLAY_CLASS |
|
|
extern DISPLAY_CLASS display; |
|
|
extern DISPLAY_CLASS display; |
|
|
|
|
|
extern MomentaryButton user_btn; |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
bool radio_init(); |
|
|
bool radio_init(); |
|
|
|