LED patterns, idle shutdown #49

Merged
matthias merged 2 commits from misc-mvp-features into main 2025-11-11 19:39:55 +00:00
Owner

Two small features:

  • Change LED pattern based on playback state
  • Shutdown on battery after idle timeout
Two small features: - Change LED pattern based on playback state - Shutdown on battery after idle timeout
matthias self-assigned this 2025-11-09 15:54:44 +00:00
matthias added 2 commits 2025-11-09 15:54:45 +00:00
Move the LED control to the utils.LedManager class. For the first
implementation, support two LED patterns 'idle' and 'playing'.

Extend the PlayerApp to set the LED pattern based on playback state.

Signed-off-by: Matthias Blankertz <matthias@blankertz.org>
feat: Implement shutdown on idle when on battery
All checks were successful
Build RPi Pico firmware image / Build-Firmware (push) Successful in 3m42s
Check code formatting / Check-C-Format (push) Successful in 7s
Check code formatting / Check-Python-Flake8 (push) Successful in 11s
Check code formatting / Check-Bash-Shellcheck (push) Successful in 5s
Run unit tests on host / Run-Unit-Tests (push) Successful in 9s
Run pytests / Check-Pytest (push) Successful in 11s
28d93fbc5d
Allow the PlayerApp to turn off the device if it is idle for longer then
the timeout. The timeout is currently hardcoded to 1 minute, this will be
made configurable in the future.

Signed-off-by: Matthias Blankertz <matthias@blankertz.org>
matthias requested review from Members 2025-11-09 15:54:45 +00:00
matthias force-pushed misc-mvp-features from 28d93fbc5d to 869a92d998 2025-11-11 19:32:44 +00:00 Compare
stefank approved these changes 2025-11-11 19:36:11 +00:00
matthias merged commit fbb383abed into main 2025-11-11 19:39:55 +00:00
matthias deleted branch misc-mvp-features 2025-11-11 19:39:56 +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#49