diff --git a/docs/microbit.rst b/docs/microbit.rst index 347c39782..f7ca8e118 100644 --- a/docs/microbit.rst +++ b/docs/microbit.rst @@ -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