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() {