Skip to content

Commit 9e454d9

Browse files
microbit-markmicrobit-carlos
authored andcommitted
docs: Indicate pin_speaker is only for PWM (#715)
1 parent 0b996b5 commit 9e454d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/pin.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ in MicroPython, but that are not available via the edge connector:
7979
* ``pin_logo`` - A touch sensitive logo pin on the front of the micro:bit,
8080
which by default is set to capacitive touch mode.
8181

82-
* ``pin_speaker`` - A pin to address the micro:bit speaker.
82+
* ``pin_speaker`` - A pin to address the micro:bit speaker. This API is
83+
intended only for use in Pulse-Width Modulation pin operations eg.
84+
``pin_speaker.write_analog(128)``.
8385

8486

8587
Pulse-Width Modulation

0 commit comments

Comments
 (0)