27-configuration-storage #53

Merged
matthias merged 7 commits from 27-configuration-storage into main 2025-12-03 19:20:26 +00:00
Owner

Load a config.json file from the root of the littlefs flash filesystem.

Move LED_COUNT, app timeouts and button mapping to config.json.

Add app support for play/pause and prev. track now that there are buttons for it.

Load a config.json file from the root of the littlefs flash filesystem. Move LED_COUNT, app timeouts and button mapping to config.json. Add app support for play/pause and prev. track now that there are buttons for it.
matthias self-assigned this 2025-12-01 19:26:54 +00:00
matthias added 6 commits 2025-12-01 19:26:55 +00:00
Load a config.json file from the root of the littlefs flash filesystem.

Signed-off-by: Matthias Blankertz <matthias@blankertz.org>
Signed-off-by: Matthias Blankertz <matthias@blankertz.org>
Signed-off-by: Matthias Blankertz <matthias@blankertz.org>
- Remove Pin to button mapping from hwconfig, replace with a simple list
  of Pins to which buttons are attached
- Add BUTTON_MAP to config.json which maps indices in the HW button list
  to button names
- Update utils.Buttons to use the button map to connect the correct pins
  to the matching key codes

Signed-off-by: Matthias Blankertz <matthias@blankertz.org>
Signed-off-by: Matthias Blankertz <matthias@blankertz.org>
fix: Ensure each timer can only be scheduled once
All checks were successful
Build RPi Pico firmware image / Build-Firmware (push) Successful in 4m58s
Check code formatting / Check-C-Format (push) Successful in 8s
Check code formatting / Check-Python-Flake8 (push) Successful in 11s
Check code formatting / Check-Bash-Shellcheck (push) Successful in 6s
Run unit tests on host / Run-Unit-Tests (push) Successful in 10s
Run pytests / Check-Pytest (push) Successful in 13s
2e1bc7782b
If a timer is scheduled with the timer manager while it is already
scheduled, the new exipry time should override the prev. expiry time
instead of adding a second instance of the same timer function.

Signed-off-by: Matthias Blankertz <matthias@blankertz.org>
matthias requested review from Members 2025-12-01 19:26:55 +00:00
stefank approved these changes 2025-12-03 18:57:27 +00:00
Dismissed
matthias added 1 commit 2025-12-03 19:13:02 +00:00
feat: Add api/v1/config to get, put config
All checks were successful
Build RPi Pico firmware image / Build-Firmware (push) Successful in 4m40s
Check code formatting / Check-C-Format (push) Successful in 9s
Check code formatting / Check-Python-Flake8 (push) Successful in 12s
Check code formatting / Check-Bash-Shellcheck (push) Successful in 6s
Run unit tests on host / Run-Unit-Tests (push) Successful in 10s
Run pytests / Check-Pytest (push) Successful in 12s
a7e58853bb
Signed-off-by: Matthias Blankertz <matthias@blankertz.org>
stefank approved these changes 2025-12-03 19:18:50 +00:00
matthias merged commit 82ed3a3c2e into main 2025-12-03 19:20:26 +00:00
matthias deleted branch 27-configuration-storage 2025-12-03 19:20:27 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TonBERRY/tonberry-pico#53