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 790f387 commit 45c3f4dCopy full SHA for 45c3f4d
docs/microbit.rst
@@ -32,6 +32,16 @@ Functions
32
restarted.
33
34
35
+.. py:function:: set_volume(volume)
36
+
37
+ (**V2 only**) Configure the output volume of the micro:bit speaker and
38
+ pins::
39
40
+ microbit.set_volume(127)
41
42
+ :param volume: An integer between 0 and 255 to set the volume.
43
44
45
.. py:function:: sleep(n)
46
47
Wait for ``n`` milliseconds. One second is 1000 milliseconds, so
0 commit comments