From d9d0634bf35986b8e79ed0caad8ff27b703f4336 Mon Sep 17 00:00:00 2001 From: Pelgraine Date: Wed, 8 Jul 2026 21:09:20 +1000 Subject: [PATCH] t-watch - added tiny step counter to clock lock screen --- examples/companion_radio/ui-new/UITask.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/examples/companion_radio/ui-new/UITask.cpp b/examples/companion_radio/ui-new/UITask.cpp index c10ca6b6..c9feff50 100644 --- a/examples/companion_radio/ui-new/UITask.cpp +++ b/examples/companion_radio/ui-new/UITask.cpp @@ -1441,6 +1441,16 @@ public: char buf[24]; display.setColor(DisplayDriver::LIGHT); + // tiny daily step count, above the clock + { + char sbuf[20]; + snprintf(sbuf, sizeof(sbuf), "%u steps", (unsigned)_task->getTodaySteps()); + display.setColor(DisplayDriver::GREEN); // muted grey on the watch palette + display.setTextSize(1); + display.drawTextCentered(display.width() / 2, 6, sbuf); + display.setColor(DisplayDriver::LIGHT); // restore for the clock + } + // big clock if (now > 1700000000) { // valid timestamp (after ~Nov 2023) int32_t local = (int32_t)now + ((int32_t)_node_prefs->utc_offset_hours * 3600);