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
awonak commented 2025-06-16 02:28:13 +00:00 (Migrated from git.pinkduck.xyz)
  • add reset state menu option to return all settings back to default values.
  • add reverse encoder menu option and save state
  • make saving to EEPROM safer by wrapping put calls with noInterrupts()
  • improve save state behavior by using a mutex flag and update check with debounce in main loop
  • refactor gravity.h global const definitions to be static and more readable.
  • improve usage of EncoderDir in ISR with pointer to instance and static isr() method.
  • reduce u8g2 memory usage by using single page buffer
- add reset state menu option to return all settings back to default values. - add reverse encoder menu option and save state - make saving to EEPROM safer by wrapping put calls with noInterrupts() - improve save state behavior by using a mutex flag and update check with debounce in main loop - refactor gravity.h global const definitions to be static and more readable. - improve usage of EncoderDir in ISR with pointer to instance and static isr() method. - reduce u8g2 memory usage by using single page buffer
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: awonak/libGravity#6
No description provided.