rename displayColumn
This commit is contained in:
parent
ad955e5a7d
commit
b2952cb6a2
@ -25,10 +25,9 @@ Task tPublishBrightness(TASK_IMMEDIATE, TASK_ONCE, Mqtt::publishBrightness, &ts,
|
||||
|
||||
namespace Display {
|
||||
|
||||
void displayColon();
|
||||
Task tDisplay(500, TASK_FOREVER, displayColon, &ts, true);
|
||||
void display();
|
||||
Task tDisplay(500, TASK_FOREVER, display, &ts, true);
|
||||
|
||||
uint8_t brightness = BRIGHTNESS_NIGHT;
|
||||
int currentHour = -1;
|
||||
int currentMin = -1;
|
||||
bool hourFormat24 = false;
|
||||
@ -88,7 +87,7 @@ namespace Display {
|
||||
clockDisplay.drawColon(colonOn);
|
||||
}
|
||||
|
||||
void displayColon() {
|
||||
void display() {
|
||||
static bool colonOn = false;
|
||||
|
||||
drawColon(colonOn);
|
||||
@ -128,6 +127,6 @@ namespace Display {
|
||||
clockDisplay.begin(DISPLAY_ADDRESS);
|
||||
clockDisplay.setBrightness(brightness);
|
||||
drawTime();
|
||||
displayColon();
|
||||
display();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user