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

@ -19,8 +19,8 @@
struct AppState;
// Define the constants for the current firmware.
const char SKETCH_NAME[] = "AltGravity";
const byte SKETCH_VERSION = 1;
const char SKETCH_NAME[] = "ALT GRAVITY";
const char SEMANTIC_VERSION[] = "V2.0.0BETA1";
// Number of available save slots.
const byte MAX_SAVE_SLOTS = 10; // Count of save slots 0 - 9 to save/load presets.
@ -58,8 +58,8 @@ class StateManager {
// This struct holds the data that identifies the firmware version.
struct Metadata {
byte version;
char sketch_name[16];
char version[16];
// Additional global/hardware settings
byte selected_save_slot;
bool encoder_reversed;