summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/WatchFaceDigital.h
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-06-04 22:25:47 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-06-11 01:00:20 (GMT)
commitd61633a8ca0476c4381c4e72c2eb8d3d142b45d3 (patch)
tree144789f897d5871f13a6dc413adbe466b78a8f4e /src/displayapp/screens/WatchFaceDigital.h
parent16882a1f9e8e82873ec14d631db96010f817149d (diff)
Make neofont0mono available.
Reduce memfrag visor to 3x4 characters test allocations with 8-byte granularity, try to test pvPort(Malloc|Free) Improve display by displaying 8-byte words, try to improve pvPortMalloc fragmentation detection Display memory fragmentation stats at the beginning and update when screen is touched. Align fragmentation stats display to right.
Diffstat (limited to 'src/displayapp/screens/WatchFaceDigital.h')
-rw-r--r--src/displayapp/screens/WatchFaceDigital.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/displayapp/screens/WatchFaceDigital.h b/src/displayapp/screens/WatchFaceDigital.h
index 1ef9244..09dae6e 100644
--- a/src/displayapp/screens/WatchFaceDigital.h
+++ b/src/displayapp/screens/WatchFaceDigital.h
@@ -37,6 +37,9 @@ namespace Pinetime {
void Refresh() override;
+ bool OnTouchEvent(TouchEvents event) override;
+ // bool OnButtonPushed() override;
+
private:
System::SystemTask& systemTask;
uint8_t displayedHour = -1;
@@ -56,6 +59,13 @@ namespace Pinetime {
char battery_percent_label_text[5] = { '?', '?', '?', '%', 0 };
char battery_voltage_label_text[8] = { '0', '0', '0', '0', ' ', 'm', 'V', 0 };
+ char memfrag_label_text[16] = {
+ '0', '0', '0', '\n',
+ '0', '0', '0', '\n',
+ '0', '0', '0', '\n',
+ '0', '0', '0', 0
+ };
+
DirtyValue<uint8_t> batteryPercentRemaining {};
DirtyValue<bool> powerPresent {};
DirtyValue<bool> bleState {};
@@ -84,6 +94,7 @@ namespace Pinetime {
lv_obj_t* notificationIcon;
lv_obj_t* batteryPercentLabel;
lv_obj_t* batteryVoltageLabel;
+ lv_obj_t* memfragLabel;
Controllers::DateTime& dateTimeController;
Controllers::Battery& batteryController;
@@ -94,6 +105,8 @@ namespace Pinetime {
Controllers::MotionController& motionController;
lv_task_t* taskRefresh;
+
+ void RefreshStats();
};
}
}