-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Speaker does not have play(tone, duration) method #35
Comments
Sounds like a documentation bug :) |
Can update the documentation to address this, but is there somehow we could expand on this, admiteddly not ideal, solution? #36 |
Thank you for the input. I will update the documentation in the meantime. |
@tomaszrykala Supporting duration essentially means having a sequencer in a separate thread that handles the timers, so it's not trivial. We have an initial implementation in our internal code review. Can you open a separate "enhancement" issue so we can keep track of it? Thanks! |
This is closed by #37 |
The readme for PWM Speaker describes an overloaded
play()
method that takes a tone and a duration as arguments. The driver however, supplies only a method that allows the tone.readme source:
https://github.com/androidthings/contrib-drivers/tree/master/pwmspeaker
extract:
The only currently existing method:
The text was updated successfully, but these errors were encountered: