summaryrefslogtreecommitdiffstatshomepage
path: root/docs/library/machine.Timer.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/library/machine.Timer.rst')
-rw-r--r--docs/library/machine.Timer.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/library/machine.Timer.rst b/docs/library/machine.Timer.rst
index daf63c9b93..344d1ea86e 100644
--- a/docs/library/machine.Timer.rst
+++ b/docs/library/machine.Timer.rst
@@ -1,4 +1,4 @@
-.. _machine.Timer:
+.. currentmodule:: machine
class Timer -- control internal timers
======================================
@@ -59,7 +59,7 @@ class Timer -- control internal timers
Constructors
------------
-.. class:: machine.Timer(id, ...)
+.. class:: Timer(id, ...)
.. only:: port_wipy
@@ -71,7 +71,7 @@ Methods
.. only:: port_wipy
- .. method:: timer.init(mode, \*, width=16)
+ .. method:: Timer.init(mode, \*, width=16)
Initialise the timer. Example::
@@ -92,14 +92,14 @@ Methods
(or large periods), 32-bit timers should be used. 32-bit mode is only available
for ``ONE_SHOT`` AND ``PERIODIC`` modes.
-.. method:: timer.deinit()
+.. method:: Timer.deinit()
Deinitialises the timer. Disables all channels and associated IRQs.
Stops the timer, and disables the timer peripheral.
.. only:: port_wipy
- .. method:: timer.channel(channel, \**, freq, period, polarity=Timer.POSITIVE, duty_cycle=0)
+ .. method:: Timer.channel(channel, \**, freq, period, polarity=Timer.POSITIVE, duty_cycle=0)
If only a channel identifier passed, then a previously initialized channel
object is returned (or ``None`` if there is no previous channel).