summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/WatchFaceDigital.h
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-04-10 15:12:50 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-04-10 15:12:50 (GMT)
commit9a9a15f00c33f79e1b5fda59cda66ee3f25441b4 (patch)
tree20fe38bb528681b6d1ef0a613a924135166e2d80 /src/displayapp/screens/WatchFaceDigital.h
parentdd7e564d2ea745f5907dc6a69966da493ff50cee (diff)
battery stats
Diffstat (limited to 'src/displayapp/screens/WatchFaceDigital.h')
-rw-r--r--src/displayapp/screens/WatchFaceDigital.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/displayapp/screens/WatchFaceDigital.h b/src/displayapp/screens/WatchFaceDigital.h
index 0bf5eec..c29033b 100644
--- a/src/displayapp/screens/WatchFaceDigital.h
+++ b/src/displayapp/screens/WatchFaceDigital.h
@@ -48,10 +48,13 @@ namespace Pinetime {
Controllers::DateTime::Months currentMonth = Pinetime::Controllers::DateTime::Months::Unknown;
Controllers::DateTime::Days currentDayOfWeek = Pinetime::Controllers::DateTime::Days::Unknown;
uint8_t currentDay = 0;
+ bool refreshBatteryInfo = true;
char hhmm_label_text[6] = { '?', '?', ':', '?', '?', 0 };
char seconds_label_text[5] = { ':', '?', '?', '.', 0 };
char deciseconds_label_text[2] = { '?', 0 };
+ char battery_percent_label_text[5] = { '?', '?', '?', '%', 0 };
+ char battery_voltage_label_text[8] = { '0', '0', '0', '0', ' ', 'm', 'V', 0 };
DirtyValue<uint8_t> batteryPercentRemaining {};
DirtyValue<bool> powerPresent {};
@@ -79,6 +82,8 @@ namespace Pinetime {
lv_obj_t* stepIcon;
lv_obj_t* stepValue;
lv_obj_t* notificationIcon;
+ lv_obj_t* batteryPercentLabel;
+ lv_obj_t* batteryVoltageLabel;
Controllers::DateTime& dateTimeController;
Controllers::Battery& batteryController;