Show loading bootsplash with firmware name and version (#18)

Bootsplash is displayed before EEPROM erase, which is a slow operation.

Reviewed-on: https://git.pinkduck.xyz/awonak/libGravity/pulls/18
This commit is contained in:
2025-07-22 05:16:32 +00:00
parent b0accdc83a
commit c5bddef66d
4 changed files with 28 additions and 5 deletions

View File

@ -64,6 +64,10 @@ void setup() {
// Start Gravity.
gravity.Init();
// Show bootsplash when initializing firmware.
Bootsplash();
delay(2000);
// Initialize the state manager. This will load settings from EEPROM
stateManager.initialize(app);
InitGravity(app);
@ -219,7 +223,9 @@ void HandleEncoderPressed() {
}
if (app.selected_param == PARAM_MAIN_FACTORY_RESET) {
if (app.selected_sub_param == 0) { // Reset
Bootsplash();
stateManager.factoryReset();
stateManager.reset(app);
InitGravity(app);
}
}