summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJos Verlinde <josverl@microsoft.com>2021-09-21 18:26:39 +0200
committerDamien George <damien@micropython.org>2022-02-09 15:04:24 +1100
commit50b172023f27e571ffdc250a7e90916b46b8feca (patch)
tree72fd8607d5e82e0998a495ba0f9a5362d76a75d5
parent2c30ac7aeb0694ea0b4721706639ca7781de34f5 (diff)
downloadmicropython-50b172023f27e571ffdc250a7e90916b46b8feca.tar.gz
micropython-50b172023f27e571ffdc250a7e90916b46b8feca.zip
docs/library/pyb.Timer.rst: Add pyb.Timer class constants.
-rw-r--r--docs/library/pyb.Timer.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/library/pyb.Timer.rst b/docs/library/pyb.Timer.rst
index 34fe71155f..cc7a01f580 100644
--- a/docs/library/pyb.Timer.rst
+++ b/docs/library/pyb.Timer.rst
@@ -262,3 +262,12 @@ Methods
for which the pulse is active. The value can be an integer or
floating-point number for more accuracy. For example, a value of 25 gives
a duty cycle of 25%.
+
+Constants
+---------
+
+.. data:: Timer.UP
+ Timer.DOWN
+ Timer.CENTER
+
+ Configures the timer to count Up, Down, or from 0 to ARR and then back down to 0.