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.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/library/machine.Timer.rst b/docs/library/machine.Timer.rst
index 5d357ca079..8464c7b369 100644
--- a/docs/library/machine.Timer.rst
+++ b/docs/library/machine.Timer.rst
@@ -31,7 +31,7 @@ class Timer -- control internal timers
tim = Timer(1, mode=Timer.PERIODIC)
tim_a = tim.channel(Timer.A, freq=1000)
- led = Pin('GPIO2', af=0, mode=Pin.OUT)
+ led = Pin('GPIO2', mode=Pin.OUT)
def tick(timer): # we will receive the timer object when being called
print(timer.time()) # show current timer's time value (is microseconds)