endSequence

This commit is contained in:
Patrick Haßel 2025-03-12 22:30:07 +01:00
parent 1561f48d1a
commit 63a2b7f23d

View File

@ -36,6 +36,43 @@ void updateTime() {
bool running = true;
void dashes() {
pixels.clear();
drawChar(pixels, 0, '-', true, RED);
drawChar(pixels, 1, '-', true, RED);
drawChar(pixels, 2, '-', true, RED);
drawChar(pixels, 3, '-', true, RED);
pixels.show();
}
void white() {
pixels.clear();
drawChar(pixels, 0, '8', true, WHITE);
drawChar(pixels, 1, '8', true, WHITE);
drawDots(pixels, WHITE, WHITE, WHITE, WHITE);
drawChar(pixels, 2, '8', true, WHITE);
drawChar(pixels, 3, '8', true, WHITE);
pixels.show();
}
void black() {
pixels.clear();
pixels.show();
}
void endSequence() {
for (int x = 0; x < 3; ++x) {
for (int i = 0; i < 2; ++i) {
white();
delay(100);
black();
delay(100);
}
dashes();
delay(500);
}
}
void showTime() {
if (!running) {
return;
@ -45,10 +82,8 @@ void showTime() {
drawMillis(pixels, rest, color);
} else {
running = false;
pixels.clear();
drawNumber(pixels, 3, 0, true, RED);
pixels.show();
Serial.println("END");
endSequence();
}
}