Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
V2 docs: Remove is_on() from speaker. (#696)
  • Loading branch information
microbit-carlos committed Apr 29, 2022
commit 00b59d373afec095e2bf33760b9408d3f3b535e3
9 changes: 2 additions & 7 deletions docs/speaker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,20 @@ Functions

.. py:function:: off()

Use off() to turn off the speaker. This does not disable sound output, so
you will still hear sound on Pin 0 if you have headphones or a speaker
connected to that pin.
Use ``off()`` to turn off the speaker. This does not disable sound output
to an edge connector pin.

.. py:function:: on()

Use ``on()`` to turn on the speaker.

.. py:function:: is_on()

Returns ``True`` if the speaker is on, otherwise returns ``False``.

Example
=======

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

from microbit import *
import audio

# Check that the speaker is on
print(speaker.is_on())
Expand Down