From f26a0f7a7d3e3caca0d9aa9cf2ce653441169c29 Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Sun, 19 Dec 2021 11:16:26 +0100 Subject: [PATCH] increase display time to 5s --- include/display.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/display.h b/include/display.h index 303465e..82a3a53 100644 --- a/include/display.h +++ b/include/display.h @@ -9,6 +9,7 @@ #define DISPLAY_ADDRESS 0x70 #define BRIGHTNESS 0 #define BRIGHTNESS_STEP 1 +#define DISPLAY_TIME 5000 namespace Display { @@ -82,10 +83,10 @@ namespace Display { void displayTemp(float value) { tDisplay.disable(); drawColon(false); - clockDisplay.printFloat(value); + clockDisplay.printFloat(value, 1); clockDisplay.writeDisplay(); drawTime(); - tDisplay.enableDelayed(1000); + tDisplay.enableDelayed(DISPLAY_TIME); } void displayValue(uint8_t value) { @@ -94,7 +95,7 @@ namespace Display { clockDisplay.print(value, HEX); clockDisplay.writeDisplay(); drawTime(); - tDisplay.enableDelayed(1000); + tDisplay.enableDelayed(DISPLAY_TIME); } void displayText(const char c[]) { @@ -103,7 +104,7 @@ namespace Display { clockDisplay.println(c); clockDisplay.writeDisplay(); drawTime(); - tDisplay.enableDelayed(1000); + tDisplay.enableDelayed(DISPLAY_TIME); } void setup() {