We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 933c34e commit 00b59d3Copy full SHA for 00b59d3
1 file changed
docs/speaker.rst
@@ -22,25 +22,20 @@ Functions
22
23
.. py:function:: off()
24
25
- Use off() to turn off the speaker. This does not disable sound output, so
26
- you will still hear sound on Pin 0 if you have headphones or a speaker
27
- connected to that pin.
+ Use ``off()`` to turn off the speaker. This does not disable sound output
+ to an edge connector pin.
28
29
.. py:function:: on()
30
31
Use ``on()`` to turn on the speaker.
32
33
-.. py:function:: is_on()
34
-
35
- Returns ``True`` if the speaker is on, otherwise returns ``False``.
36
37
Example
38
=======
39
40
An example that runs through some of the functions of the speaker API. ::
41
42
from microbit import *
43
- import audio
44
45
# Check that the speaker is on
46
print(speaker.is_on())
0 commit comments