File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff 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
3733Example
3834=======
3935
4036An 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())
You can’t perform that action at this time.
0 commit comments