Add Basic Overlay support to Usermods.

This commit is contained in:
Gregory Schmidt
2021-09-29 19:23:32 -08:00
parent 8453cd82e9
commit ccd3152b24
7 changed files with 277 additions and 4 deletions

View File

@@ -17,7 +17,9 @@ void initCronixie()
}
}
/*
* handleOverlays is essentially the equivalent of usermods.loop
*/
void handleOverlays()
{
initCronixie();
@@ -111,8 +113,11 @@ void _overlayAnalogCountdown()
}
}
/*
* All overlays should be moved to usermods
*/
void handleOverlayDraw() {
usermods.handleOverlayDraw();
if (!overlayCurrent) return;
switch (overlayCurrent)
{
@@ -121,7 +126,6 @@ void handleOverlayDraw() {
}
}
/*
* Support for the Cronixie clock
*/