summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/Clock.h
diff options
context:
space:
mode:
authorJF002 <JF002@users.noreply.github.com>2021-01-20 20:11:56 +0000
committerGitHub <noreply@github.com>2021-01-20 20:11:56 +0000
commita0f2fa8469f3a2c0f5f2f914ad174029da321cc0 (patch)
tree4ac5f59cd088aea9af51d2d183376de279808e63 /src/displayapp/screens/Clock.h
parent35d4f6d4875b68ff8fdecb436e3bc0a6f91099f3 (diff)
parent68674cec53e2e2add1c0a0b109e5a0e7d9ed5479 (diff)
Merge pull request #169 from JF002/heartRateSensor
Heart rate sensor
Diffstat (limited to 'src/displayapp/screens/Clock.h')
-rw-r--r--src/displayapp/screens/Clock.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/displayapp/screens/Clock.h b/src/displayapp/screens/Clock.h
index 4c5f60a0..4d5be282 100644
--- a/src/displayapp/screens/Clock.h
+++ b/src/displayapp/screens/Clock.h
@@ -12,6 +12,7 @@ namespace Pinetime {
class Battery;
class Ble;
class NotificationManager;
+ class HeartRateController;
}
namespace Applications {
@@ -42,7 +43,8 @@ namespace Pinetime {
Controllers::DateTime& dateTimeController,
Controllers::Battery& batteryController,
Controllers::Ble& bleController,
- Controllers::NotificationManager& notificatioManager);
+ Controllers::NotificationManager& notificatioManager,
+ Controllers::HeartRateController& heartRateController);
~Clock() override;
bool Refresh() override;
@@ -67,6 +69,7 @@ namespace Pinetime {
DirtyValue<std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds>> currentDateTime;
DirtyValue<uint32_t> stepCount {0};
DirtyValue<uint8_t> heartbeat {0};
+ DirtyValue<bool> heartbeatRunning {false};
DirtyValue<bool> notificationState {false};
lv_obj_t* label_time;
@@ -86,6 +89,7 @@ namespace Pinetime {
Controllers::Battery& batteryController;
Controllers::Ble& bleController;
Controllers::NotificationManager& notificatioManager;
+ Controllers::HeartRateController& heartRateController;
bool running = true;