bbcmicrobit / micropython

Port of MicroPython for the BBC micro:bit
https://microbit-micropython.readthedocs.io
Other
595 stars 287 forks source link

docs: Improve microphone description, add more info for `set_threshold()`. #804

Closed microbit-carlos closed 2 months ago

microbit-carlos commented 3 months ago

The improvements are taken from micropython-microbit-stubs/lang/en/typeshed/stdlib/microbit/microphone.pyi, the additional set_threshold() from https://github.com/lancaster-university/codal-core/pull/167.

@microbit-matt-hillsdon @microbit-grace https://github.com/bbcmicrobit/micropython/commit/ad7e00f5db67ef12c82f5a8bbc84e12d20487587 shows a better diff for the stubs, but please feel free to review these changes if you'd like.

Preview URL: https://microbit-micropython--804.org.readthedocs.build/en/804/microphone.html