Detect full charge and improve watchface display

This commit is contained in:
Riku Isokoski
2021-09-03 14:35:38 +03:00
parent 6f9f0e8b0e
commit fd52ca8fe6
9 changed files with 75 additions and 26 deletions

View File

@@ -49,6 +49,7 @@ namespace Pinetime {
uint8_t currentDay = 0;
DirtyValue<uint8_t> batteryPercentRemaining {0};
DirtyValue<bool> isCharging {};
DirtyValue<std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds>> currentDateTime;
DirtyValue<bool> notificationState {false};
@@ -81,6 +82,7 @@ namespace Pinetime {
Controllers::Settings& settingsController;
void UpdateClock();
void SetBatteryIcon();
lv_task_t* taskRefresh;
};