Skip to content

Commit 35b4d54

Browse files
V2 docs: Remove is_on() from speaker. (bbcmicrobit#696)
1 parent d3daa24 commit 35b4d54

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

docs/speaker.rst

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,20 @@ Functions
2222

2323
.. py:function:: off()
2424
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.
25+
Use ``off()`` to turn off the speaker. This does not disable sound output
26+
to an edge connector pin.
2827

2928
.. py:function:: on()
3029
3130
Use ``on()`` to turn on the speaker.
3231

33-
.. py:function:: is_on()
34-
35-
Returns ``True`` if the speaker is on, otherwise returns ``False``.
3632

3733
Example
3834
=======
3935

4036
An example that runs through some of the functions of the speaker API. ::
4137

4238
from microbit import *
43-
import audio
4439

4540
# Check that the speaker is on
4641
print(speaker.is_on())

0 commit comments

Comments
 (0)