diff options
author | Kieran Cawthray <kieranc@gmail.com> | 2021-06-20 21:53:09 +0200 |
---|---|---|
committer | Kieran Cawthray <kieranc@gmail.com> | 2021-06-20 21:53:09 +0200 |
commit | 607af27ba8790f68d06d7cc855ef3058558defd7 (patch) | |
tree | f14af5ea5514046d519a702e8629236fe2b66771 /src/displayapp/screens/PineTimeStyle.h | |
parent | b130ffa39cef1ddca5e81d83e03bf0ade66a1458 (diff) |
Add step count gauge - replaces heartrate in sidebar
Diffstat (limited to 'src/displayapp/screens/PineTimeStyle.h')
-rw-r--r-- | src/displayapp/screens/PineTimeStyle.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/displayapp/screens/PineTimeStyle.h b/src/displayapp/screens/PineTimeStyle.h index 55752412..4530bb5f 100644 --- a/src/displayapp/screens/PineTimeStyle.h +++ b/src/displayapp/screens/PineTimeStyle.h @@ -27,7 +27,7 @@ namespace Pinetime { Controllers::Ble& bleController, Controllers::NotificationManager& notificatioManager, Controllers::Settings& settingsController, - Controllers::HeartRateController& heartRateController); + Controllers::MotionController& motionController); ~PineTimeStyle() override; bool Refresh() override; @@ -45,8 +45,8 @@ namespace Pinetime { DirtyValue<int> batteryPercentRemaining {}; DirtyValue<bool> bleState {}; DirtyValue<std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds>> currentDateTime {}; - DirtyValue<uint8_t> heartbeat {}; - DirtyValue<bool> heartbeatRunning {}; + DirtyValue<bool> motionSensorOk {}; + DirtyValue<uint32_t> stepCount {}; DirtyValue<bool> notificationState {}; lv_obj_t* timebar; @@ -70,13 +70,14 @@ namespace Pinetime { lv_obj_t* heartbeatValue; lv_obj_t* heartbeatBpm; lv_obj_t* notificationIcon; + lv_obj_t* stepGauge; Controllers::DateTime& dateTimeController; Controllers::Battery& batteryController; Controllers::Ble& bleController; Controllers::NotificationManager& notificatioManager; Controllers::Settings& settingsController; - Controllers::HeartRateController& heartRateController; + Controllers::MotionController& motionController; }; } } |