Skip to content

Commit

Permalink
docs: Indicate pin_speaker is only for PWM (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-mark authored and microbit-carlos committed Apr 25, 2022
1 parent ffc6152 commit 0bfae63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/pin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ in MicroPython, but that are not available via the edge connector:
* ``pin_logo`` - A touch sensitive logo pin on the front of the micro:bit,
which by default is set to capacitive touch mode.

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


Pulse-Width Modulation
Expand Down

0 comments on commit 0bfae63

Please sign in to comment.