Commit b57b56f2 authored by Peter Hinch's avatar Peter Hinch Committed by Damien George
Browse files

docs: Update pyb.Timer.rst to fix pulse widths that exceed the period.

parent cb0fc063
...@@ -110,8 +110,8 @@ Methods ...@@ -110,8 +110,8 @@ Methods
PWM Example:: PWM Example::
timer = pyb.Timer(2, freq=1000) timer = pyb.Timer(2, freq=1000)
ch2 =, pyb.Timer.PWM, pin=pyb.Pin.board.X2, pulse_width=210000) ch2 =, pyb.Timer.PWM, pin=pyb.Pin.board.X2, pulse_width=8000)
ch3 =, pyb.Timer.PWM, pin=pyb.Pin.board.X3, pulse_width=420000) ch3 =, pyb.Timer.PWM, pin=pyb.Pin.board.X3, pulse_width=16000)
.. method:: timer.counter([value]) .. method:: timer.counter([value])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment