mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
doc/builtins/Speaker: use '' for string settings
Also simplify by not listing all the options twice, and follow style for default argument.
This commit is contained in:
@@ -421,11 +421,10 @@ class Speaker():
|
||||
volume (:ref:`percentage`):
|
||||
Volume of the speaker.
|
||||
which (str):
|
||||
The specific volume to set. Can be ``Beep``, ``PCM`` or
|
||||
``_all_``. ``Beep`` controls the volume for :meth:`beep` and
|
||||
:meth:`play_notes`. ``PCM`` controls the volume for
|
||||
:meth:`play_file` and :meth:`say`. ``_all_`` sets both at the
|
||||
same time.
|
||||
Which volume to set. ``'Beep'`` sets the volume for
|
||||
:meth:`beep` and :meth:`play_notes`. ``'PCM'`` sets the volume
|
||||
for :meth:`play_file` and :meth:`say`. ``'_all_'`` sets both
|
||||
at the same time (*Default*: ``'_all_'``).
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user