increase display time to 5s
This commit is contained in:
parent
fd3f32ca70
commit
f26a0f7a7d
@ -9,6 +9,7 @@
|
|||||||
#define DISPLAY_ADDRESS 0x70
|
#define DISPLAY_ADDRESS 0x70
|
||||||
#define BRIGHTNESS 0
|
#define BRIGHTNESS 0
|
||||||
#define BRIGHTNESS_STEP 1
|
#define BRIGHTNESS_STEP 1
|
||||||
|
#define DISPLAY_TIME 5000
|
||||||
|
|
||||||
namespace Display {
|
namespace Display {
|
||||||
|
|
||||||
@ -82,10 +83,10 @@ namespace Display {
|
|||||||
void displayTemp(float value) {
|
void displayTemp(float value) {
|
||||||
tDisplay.disable();
|
tDisplay.disable();
|
||||||
drawColon(false);
|
drawColon(false);
|
||||||
clockDisplay.printFloat(value);
|
clockDisplay.printFloat(value, 1);
|
||||||
clockDisplay.writeDisplay();
|
clockDisplay.writeDisplay();
|
||||||
drawTime();
|
drawTime();
|
||||||
tDisplay.enableDelayed(1000);
|
tDisplay.enableDelayed(DISPLAY_TIME);
|
||||||
}
|
}
|
||||||
|
|
||||||
void displayValue(uint8_t value) {
|
void displayValue(uint8_t value) {
|
||||||
@ -94,7 +95,7 @@ namespace Display {
|
|||||||
clockDisplay.print(value, HEX);
|
clockDisplay.print(value, HEX);
|
||||||
clockDisplay.writeDisplay();
|
clockDisplay.writeDisplay();
|
||||||
drawTime();
|
drawTime();
|
||||||
tDisplay.enableDelayed(1000);
|
tDisplay.enableDelayed(DISPLAY_TIME);
|
||||||
}
|
}
|
||||||
|
|
||||||
void displayText(const char c[]) {
|
void displayText(const char c[]) {
|
||||||
@ -103,7 +104,7 @@ namespace Display {
|
|||||||
clockDisplay.println(c);
|
clockDisplay.println(c);
|
||||||
clockDisplay.writeDisplay();
|
clockDisplay.writeDisplay();
|
||||||
drawTime();
|
drawTime();
|
||||||
tDisplay.enableDelayed(1000);
|
tDisplay.enableDelayed(DISPLAY_TIME);
|
||||||
}
|
}
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user