aboutsummaryrefslogtreecommitdiffstats
path: root/source/driverSharp.cpp
diff options
context:
space:
mode:
authortcsullivan <tullivan99@gmail.com>2019-03-14 10:14:40 -0400
committertcsullivan <tullivan99@gmail.com>2019-03-14 10:14:40 -0400
commit31e115f7e72532fbfd456709e95d440e3be46fa1 (patch)
treee937395624efecf99eb4f58f1cd7f57d2efc7997 /source/driverSharp.cpp
parentdd33956654589ded6644a75088e50069b1744ef9 (diff)
app communication working
Diffstat (limited to 'source/driverSharp.cpp')
-rw-r--r--source/driverSharp.cpp10
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();
}
}