Skip to content

Commit

Permalink
docs: Add V2 microbit.set_volume() info. (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-carlos committed Apr 29, 2022
1 parent 790f387 commit 45c3f4d
Showing 1 changed file with 10 additions and 0 deletions.
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

0 comments on commit 45c3f4d

Please sign in to comment.