From ac971d4c57ac9bd2ce6295cf939a89237a91f3ec Mon Sep 17 00:00:00 2001 From: JbLb Date: Fri, 22 Dec 2017 17:20:01 +0100 Subject: [PATCH] add blinking colon by seconds --- LibreMetric.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LibreMetric.ino b/LibreMetric.ino index a8eb23d..1c9a733 100644 --- a/LibreMetric.ino +++ b/LibreMetric.ino @@ -120,8 +120,9 @@ void loop() { //Serial.println(time); time.trim(); time.substring(11,19).toCharArray(time_value, 10); + int seconds = time.substring(17,19).toInt(); for (int i = 0; i <= 4; i++) { - matrix.drawChar(i*6+2,0, time_value[i], HIGH,LOW,1); // H + matrix.drawChar(i*6+2,0, (i==2 && seconds %2) ? char(0x20): time_value[i], HIGH,LOW,1); // H } matrix.write(); // Send bitmap to display if (message != "") {