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 2ee1338 commit ab71b4fCopy full SHA for ab71b4f
docs/microbit.rst
@@ -51,6 +51,16 @@ Functions
51
52
:returns: The ``value`` converted to the ``to`` range.
53
54
+.. py:function:: set_volume(volume)
55
+
56
+ (**V2 only**) Configure the output volume of the micro:bit speaker and
57
+ pins::
58
59
+ microbit.set_volume(127)
60
61
+ :param volume: An integer between 0 and 255 to set the volume.
62
63
64
.. py:function:: sleep(n)
65
66
Wait for ``n`` milliseconds. One second is 1000 milliseconds, so
0 commit comments