Implements option to show clock overlay only if all LEDs are solid black
This commit is contained in:
Woody
2023-10-26 23:36:29 +02:00
parent d5f54c240a
commit 94b9455c9c
6 changed files with 15 additions and 0 deletions

View File

@@ -89,6 +89,15 @@ void _overlayAnalogCountdown()
void handleOverlayDraw() {
usermods.handleOverlayDraw();
if (analogClockSolidBlack) {
Segment* segments = strip.getSegments();
for (uint8_t i = 0; i < strip.getActiveSegmentsNum(); i++) {
Segment segment = segments[i];
if (segment.mode > 0 || segment.colors[0] > 0) {
return;
}
}
}
if (overlayCurrent == 1) _overlayAnalogClock();
}