diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-04-03 18:51:55 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-04-03 19:37:11 (GMT) |
| commit | 96b982fd94b48e441ab3a582bfafc7410bf0cbb1 (patch) | |
| tree | 4ecb1c1e1949c8f150b4eb4d70a79e2c75cd74c2 /src/displayapp/screens/WatchFaceDigital.h | |
| parent | 4bca082ceab2ed8c56a1929cdc0c850bae75240f (diff) | |
Add temperature display
Diffstat (limited to 'src/displayapp/screens/WatchFaceDigital.h')
| -rw-r--r-- | src/displayapp/screens/WatchFaceDigital.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/displayapp/screens/WatchFaceDigital.h b/src/displayapp/screens/WatchFaceDigital.h index eb95e6f..2e0ad0b 100644 --- a/src/displayapp/screens/WatchFaceDigital.h +++ b/src/displayapp/screens/WatchFaceDigital.h @@ -7,6 +7,7 @@ #include "displayapp/screens/Screen.h" #include "components/datetime/DateTimeController.h" #include "components/ble/BleController.h" +#include "systemtask/SystemTask.h" namespace Pinetime { namespace Controllers { @@ -28,12 +29,14 @@ namespace Pinetime { Controllers::Ble& bleController, Controllers::NotificationManager& notificatioManager, Controllers::Settings& settingsController, - Controllers::MotionController& motionController); + Controllers::MotionController& motionController, + System::SystemTask& systemTask); ~WatchFaceDigital() override; void Refresh() override; private: + System::SystemTask& systemTask; uint8_t displayedHour = -1; uint8_t displayedMinute = -1; @@ -50,8 +53,10 @@ namespace Pinetime { DirtyValue<std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds>> currentDateTime {}; DirtyValue<bool> motionSensorOk {}; DirtyValue<uint32_t> stepCount {}; + DirtyValue<uint16_t> temperature {}; DirtyValue<bool> notificationState {}; + lv_obj_t* label_temp; lv_obj_t* label_time; lv_obj_t* label_time_pm; lv_obj_t* label_date; |
