We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://microbit-micropython.readthedocs.io/en/v2-docs/microphone.html#microbit.microphone.current_event says "return: the name of the last recorded sound event, SoundEvent('loud') or SoundEvent('quiet')"
In practice it seems that the first result is None:
>>> repr(microphone.current_event()) 'None' >>> repr(microphone.current_event()) "SoundEvent('quiet')"
should the docs be updated to mention this or is it a bug in the implementation?
The text was updated successfully, but these errors were encountered:
This looks like a bug and should probably return the "quiet" event for the first call.
Sorry, something went wrong.
codal_port/microbit_microphone: Remove possibility for None as an event.
69c8ddc
The initial sound event is now "quiet", and None is no longer possible. Fixes issue #86. Signed-off-by: Damien George <damien@micropython.org>
Fixed by 69c8ddc
No branches or pull requests
https://microbit-micropython.readthedocs.io/en/v2-docs/microphone.html#microbit.microphone.current_event says "return: the name of the last recorded sound event, SoundEvent('loud') or SoundEvent('quiet')"
In practice it seems that the first result is None:
should the docs be updated to mention this or is it a bug in the implementation?
The text was updated successfully, but these errors were encountered: