Introduce StateManager to persist state between power cycles #6

Merged
awonak merged 5 commits from refs/pull/6/head into main 2025-06-16 02:47:25 +00:00

5 Commits

Author SHA1 Message Date
3e44c52fd8 more minor edits 2025-06-15 19:44:42 -07:00
d62e37e033 minor edits 2025-06-15 19:40:51 -07:00
8644a3e752 Lots of changes and optimizations
- add reverse encoder menu option and save state
- improve usage of EncoderDir in ISR with pointer to instance and static isr() method.
- reduce u8g2 memory usage by using single page buffer
- improve save state behavor by using a mutex flag and update check with debounce in main loop
- make saving to EEPROM safer by wrapping put calls with noInterrupts()
2025-06-15 19:20:16 -07:00
0cef942f2c Add the ability to reset state from the main menu. Refactor gravity.h global const definitions to be static and more readable. 2025-06-15 11:23:57 -07:00
696229cfe1 Introduce StateManager class for persisting state to EEPROM. 2025-06-14 21:08:04 -07:00