Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
docs: Add V2 microbit.set_volume() info. (#742)
  • Loading branch information
microbit-carlos committed Apr 29, 2022
commit 45c3f4d7633afeca22f9d67b16a87c6abcf7c8bd
10 changes: 10 additions & 0 deletions docs/microbit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ Functions
restarted.


.. py:function:: set_volume(volume)

(**V2 only**) Configure the output volume of the micro:bit speaker and
pins::

microbit.set_volume(127)

:param volume: An integer between 0 and 255 to set the volume.


.. py:function:: sleep(n)

Wait for ``n`` milliseconds. One second is 1000 milliseconds, so
Expand Down