We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88e227f commit 0ba4156Copy full SHA for 0ba4156
docs/microbit.rst
@@ -58,6 +58,16 @@ Functions
58
59
:returns: The ``value`` converted to the ``to`` range.
60
61
+.. py:function:: set_volume(volume)
62
+
63
+ (**V2 only**) Configure the output volume of the micro:bit speaker and
64
+ pins::
65
66
+ microbit.set_volume(127)
67
68
+ :param volume: An integer between 0 and 255 to set the volume.
69
70
71
.. py:function:: sleep(n)
72
73
Wait for ``n`` milliseconds. One second is 1000 milliseconds, so
0 commit comments