aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/DisplayApp.cpp
diff options
context:
space:
mode:
authorkieranc <kieranc@gmail.com>2023-06-04 16:52:31 +0200
committerGitHub <noreply@github.com>2023-06-04 16:52:31 +0200
commit94f41258d52102dc4863d964d43794b34f26cf41 (patch)
treeb4ca7ee44ea2531ca326487966c7a1b1c2b4ebe5 /src/displayapp/DisplayApp.cpp
parent394f58fbb246a3b54a409bf94d85aa7d63b88a2c (diff)
PineTimeStyle weather display (#1459)
Weather display for PineTimeStyle Documentation : https://wiki.pine64.org/wiki/PineTimeStyle and https://wiki.pine64.org/wiki/Infinitime-Weather
Diffstat (limited to 'src/displayapp/DisplayApp.cpp')
-rw-r--r--src/displayapp/DisplayApp.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/displayapp/DisplayApp.cpp b/src/displayapp/DisplayApp.cpp
index fe2ee213..a930fe96 100644
--- a/src/displayapp/DisplayApp.cpp
+++ b/src/displayapp/DisplayApp.cpp
@@ -29,6 +29,7 @@
#include "displayapp/screens/Steps.h"
#include "displayapp/screens/PassKey.h"
#include "displayapp/screens/Error.h"
+#include "displayapp/screens/Weather.h"
#include "drivers/Cst816s.h"
#include "drivers/St7789.h"
@@ -417,6 +418,7 @@ void DisplayApp::LoadScreen(Apps app, DisplayApp::FullRefreshDirections directio
settingsController,
heartRateController,
motionController,
+ systemTask->nimble().weather(),
filesystem);
break;
@@ -538,6 +540,11 @@ void DisplayApp::LoadScreen(Apps app, DisplayApp::FullRefreshDirections directio
case Apps::Metronome:
currentScreen = std::make_unique<Screens::Metronome>(motorController, *systemTask);
break;
+ /* Weather debug app
+ case Apps::Weather:
+ currentScreen = std::make_unique<Screens::Weather>(this, systemTask->nimble().weather());
+ break;
+ */
case Apps::Steps:
currentScreen = std::make_unique<Screens::Steps>(motionController, settingsController);
break;