summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/WatchFaceDigital.h
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-03-30 20:50:42 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-03-31 00:12:29 (GMT)
commit12e938959eb1e2146fdec3fee7b9a304aa6889d2 (patch)
treef57f54615ad00327e8dc33c958ec67773c49f655 /src/displayapp/screens/WatchFaceDigital.h
parentff68f91be9cce2fb27d3b3aea9ab26fa224ea0eb (diff)
with heart
Diffstat (limited to 'src/displayapp/screens/WatchFaceDigital.h')
-rw-r--r--src/displayapp/screens/WatchFaceDigital.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/displayapp/screens/WatchFaceDigital.h b/src/displayapp/screens/WatchFaceDigital.h
index 8382996..93719c1 100644
--- a/src/displayapp/screens/WatchFaceDigital.h
+++ b/src/displayapp/screens/WatchFaceDigital.h
@@ -15,6 +15,7 @@ namespace Pinetime {
class Battery;
class Ble;
class NotificationManager;
+ class HeartRateController;
class MotionController;
}
@@ -29,6 +30,7 @@ namespace Pinetime {
Controllers::Ble& bleController,
Controllers::NotificationManager& notificatioManager,
Controllers::Settings& settingsController,
+ Controllers::HeartRateController& heartRateController,
Controllers::MotionController& motionController,
System::SystemTask& systemTask);
~WatchFaceDigital() override;
@@ -54,6 +56,8 @@ namespace Pinetime {
DirtyValue<std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds>> currentDateTime {};
DirtyValue<bool> motionSensorOk {};
DirtyValue<uint32_t> stepCount {};
+ DirtyValue<uint8_t> heartbeat {};
+ DirtyValue<bool> heartbeatRunning {};
DirtyValue<bool> notificationState {};
lv_obj_t* label_temp;
@@ -68,6 +72,8 @@ namespace Pinetime {
lv_obj_t* batteryIcon;
lv_obj_t* bleIcon;
lv_obj_t* batteryPlug;
+ lv_obj_t* heartbeatIcon;
+ lv_obj_t* heartbeatValue;
lv_obj_t* stepIcon;
lv_obj_t* stepValue;
lv_obj_t* notificationIcon;
@@ -77,6 +83,7 @@ namespace Pinetime {
Controllers::Ble& bleController;
Controllers::NotificationManager& notificatioManager;
Controllers::Settings& settingsController;
+ Controllers::HeartRateController& heartRateController;
Controllers::MotionController& motionController;
lv_task_t* taskRefresh;