From b57b56f2932aa7f35c32e6d57e79ba8947407363 Mon Sep 17 00:00:00 2001 From: Peter Hinch Date: Fri, 6 Mar 2015 11:41:01 +0000 Subject: [PATCH] docs: Update pyb.Timer.rst to fix pulse widths that exceed the period. --- docs/library/pyb.Timer.rst | 4 ++-- 1 file 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])