diff options
Diffstat (limited to 'source/driverSharp.cpp')
-rw-r--r-- | source/driverSharp.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/driverSharp.cpp b/source/driverSharp.cpp index c68790e..4cdc6f1 100644 --- a/source/driverSharp.cpp +++ b/source/driverSharp.cpp @@ -8,6 +8,7 @@ constexpr unsigned int SHARP_SS = 14; Adafruit_SharpMem Sharp::display(SHARP_SCK, SHARP_MOSI, SHARP_SS, 144, 168); TaskHandle_t Sharp::taskHandle; bool Sharp::holdRendering = false; +char Sharp::message[16] = ""; #define BLACK 0 #define WHITE 1 @@ -33,8 +34,13 @@ void Sharp::updateTask([[maybe_unused]] void *arg) if (auto t = RTC::ticks(); t != old) { old = t; - display.setCursor(0, 60); - display.printf("%2d:%02d", t / 60, t % 60); + display.setCursor(0, 10); + display.printf("%2d:%02d:%02d", t / 3600, (t % 3600) / + 60, t % 60); + if (*message != '\0') { + display.setCursor(0, 100); + display.printf("%-16s", message); + } display.refresh(); } } |