summaryrefslogtreecommitdiffstatshomepage
path: root/docs/library
diff options
context:
space:
mode:
authorPeter Hinch <peterhinch@users.noreply.github.com>2015-03-06 11:41:01 +0000
committerDamien George <damien.p.george@gmail.com>2015-03-09 12:14:32 +0000
commitb57b56f2932aa7f35c32e6d57e79ba8947407363 (patch)
treea6a97b9900cdaedeb2acdca45af08b2743acc6e0 /docs/library
parentcb0fc063edd428e0d7eee69190d2d31b5c9b49a0 (diff)
downloadmicropython-b57b56f2932aa7f35c32e6d57e79ba8947407363.tar.gz
micropython-b57b56f2932aa7f35c32e6d57e79ba8947407363.zip
docs: Update pyb.Timer.rst to fix pulse widths that exceed the period.
Diffstat (limited to 'docs/library')
-rw-r--r--docs/library/pyb.Timer.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/library/pyb.Timer.rst b/docs/library/pyb.Timer.rst
index 017ea56c5c..78db71e542 100644
--- a/docs/library/pyb.Timer.rst
+++ b/docs/library/pyb.Timer.rst
@@ -110,8 +110,8 @@ Methods
PWM Example::
timer = pyb.Timer(2, freq=1000)
- ch2 = timer.channel(2, pyb.Timer.PWM, pin=pyb.Pin.board.X2, pulse_width=210000)
- ch3 = timer.channel(3, pyb.Timer.PWM, pin=pyb.Pin.board.X3, pulse_width=420000)
+ ch2 = timer.channel(2, pyb.Timer.PWM, pin=pyb.Pin.board.X2, pulse_width=8000)
+ ch3 = timer.channel(3, pyb.Timer.PWM, pin=pyb.Pin.board.X3, pulse_width=16000)
.. method:: timer.counter([value])