Skip to content

Commit 8e1fdf2

Browse files
author
danicampora
committed
docs: Add note on machine.Timer class regarding PWM output pins.
1 parent 28adab3 commit 8e1fdf2

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/library/machine.Timer.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,17 @@ Methods
126126
doesn't support floating point numbers the duty cycle must be specified in the range 0-10000,
127127
where 10000 would represent 100.00, 5050 represents 50.50, and so on.
128128

129+
.. note::
130+
131+
When the channel is in PWM mode, the corresponding pin is assigned automatically, therefore
132+
there's no need to assign the alternate function of the pin via the ``Pin`` class. The pins which
133+
support PWM functionality are the following:
134+
135+
- ``GP24`` on Timer 0 channel A.
136+
- ``GP25`` on Timer 1 channel A.
137+
- ``GP9`` on Timer 2 channel B.
138+
- ``GP10`` on Timer 3 channel A.
139+
- ``GP11`` on Timer 3 channel B.
129140

130141
class TimerChannel --- setup a channel for a timer
131142
==================================================

0 commit comments

Comments
 (0)