diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-06-08 16:21:28 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-06-08 16:21:28 +0300 |
commit | a384a5313013d8ffda4db0e509cf798a080b3526 (patch) | |
tree | c1b87be77f0a3a68fc5a55880bf9de8af3b90b87 /docs/library/pyb.Timer.rst | |
parent | 585aafc27eb7fa8fe660e3eeaa29bf8d7ab99213 (diff) | |
download | micropython-a384a5313013d8ffda4db0e509cf798a080b3526.tar.gz micropython-a384a5313013d8ffda4db0e509cf798a080b3526.zip |
docs/pyb.*: Use proper class case in method headers.
Class designator will be used as is in indexes, so must match actual class
name.
Diffstat (limited to 'docs/library/pyb.Timer.rst')
-rw-r--r-- | docs/library/pyb.Timer.rst | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/library/pyb.Timer.rst b/docs/library/pyb.Timer.rst index a709e11bf7..ffb092caa3 100644 --- a/docs/library/pyb.Timer.rst +++ b/docs/library/pyb.Timer.rst @@ -68,7 +68,7 @@ Methods .. only:: port_pyboard - .. method:: timer.init(\*, freq, prescaler, period) + .. method:: Timer.init(\*, freq, prescaler, period) Initialise the timer. Initialisation must be either by frequency (in Hz) or by prescaler and period:: @@ -115,7 +115,7 @@ Methods You must either specify freq or both of period and prescaler. -.. method:: timer.deinit() +.. method:: Timer.deinit() Deinitialises the timer. @@ -128,7 +128,7 @@ Methods .. only:: port_pyboard - .. method:: timer.callback(fun) + .. method:: Timer.callback(fun) Set the function to be called when the timer triggers. ``fun`` is passed 1 argument, the timer object. @@ -136,7 +136,7 @@ Methods .. only:: port_pyboard - .. method:: timer.channel(channel, mode, ...) + .. method:: Timer.channel(channel, mode, ...) If only a channel number is passed, then a previously initialized channel object is returned (or ``None`` if there is no previous channel). @@ -212,27 +212,27 @@ Methods .. only:: port_pyboard - .. method:: timer.counter([value]) + .. method:: Timer.counter([value]) Get or set the timer counter. .. only:: port_pyboard - .. method:: timer.freq([value]) + .. method:: Timer.freq([value]) Get or set the frequency for the timer (changes prescaler and period if set). .. only:: port_pyboard - .. method:: timer.period([value]) + .. method:: Timer.period([value]) Get or set the period of the timer. - .. method:: timer.prescaler([value]) + .. method:: Timer.prescaler([value]) Get or set the prescaler for the timer. - .. method:: timer.source_freq() + .. method:: Timer.source_freq() Get the frequency of the source of the timer. |