From 20c3b02dbaf6c3875222748f21ceca78f21b493c Mon Sep 17 00:00:00 2001 From: Patrick Moessler Date: Sun, 14 Jan 2024 01:45:22 +0100 Subject: [PATCH] add segment test string --- esp32-clock-template.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/esp32-clock-template.yaml b/esp32-clock-template.yaml index e9209d0..24d6933 100644 --- a/esp32-clock-template.yaml +++ b/esp32-clock-template.yaml @@ -51,7 +51,7 @@ time: spi: clk_pin: GPIO18 mosi_pin: GPIO19 - + sensor: - platform: uptime id: runtime @@ -76,9 +76,17 @@ display: it.strftime(0, "%H%M%s", id(sntp_time).now()); it.printf(7, "%2d", clock_frames); + it.printf(8, ".*-_'`,0"); /*it.strftime(8, "%H%M%s", id(sntp_time).now());*/ /*it.printf(11, "%1d", 0)*/ it.printf(12, "%2d%2d%2d%2d", int(id(runtime).state/3600)%24, int(id(runtime).state/60)%60, int(id(runtime).state)%60, int(id(runtime).state-int(id(runtime).state)*25) ); - - +# the second display should display a test string to figure out the digit and segment map: +# digit 0: >.< character (dot segment on) +# digit 1: >*< character (upper segment on) +# digit 2: >-< character (middle segment on) +# digit 3: >_< character (lower segment on) +# digit 4: >'< character (upper left segment on) +# digit 5: >`< character (upper right segment on) +# digit 6: >,< character (lower right segment on) +# digit 7: >9< character (all on, except lower left segment)