forked from maaadc/singsang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changes: * enable access to 3 buttons below display (use M5.Touch as …
…M5.BtnA.read() does not work) ! option to e.g. use A and B for multipage GUI * store index of song played last as json to SPIFFS * identify SD and apply last index to correct SD ! consider storing config for more than one SD - but how to limit data size? * also store last volume ! however always use safe low default volume ! having a callback/event/interrupt on power press would allow to store config state at power-off only ! storing actual playing position is more complex and costly (needs timer e.g. 1s or power-off method) * see m5stack/M5Core2#100 ("No detection of power button press · Issue #100 · m5stack/M5Core2 · GitHub") * power button press is not suficient, what happens when SD gets removed while playing (temp. store until power button?) what happens when bat gets empty? -> timer might be only general solution, may be combined with power button detection * see also https://github.com/vshymanskyy/Preferences (by default does not use SPIFFS but flash)
- Loading branch information
Showing
2 changed files
with
95 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters