adafruit / adafruit/Adafruit_CircuitPython_MacroPad

Feature request: non-blocking play_file()

Open
#18 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
99
Forks
26
PR merge metrics
No merged PRs in 30d

Description

Maybe an optional boolean argument whether to block on WAV playback or not? Would want corresponding function(s) to poll whether currently playing and to disable speaker without accessing protected elements.

Currently working around this with a few extra lines in the Dragon Drop game:
https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/main/Macropad_Dragon_Drop
Not a pressing need, the workaround’s simple enough, just that it might make user-facing code less daunting by not having pylint directives in there and stuff. Thx.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the play_file() entry point and compare its current behavior with the workaround in the linked Macropad_Dragon_Drop example. Determine how optional non-blocking playback, playback polling, and speaker disabling should be exposed without protected-element access; done means the requested public behavior is available and the existing workaround is no longer needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.