summaryrefslogtreecommitdiff
path: root/docs/esp8266/tutorial
diff options
context:
space:
mode:
Diffstat (limited to 'docs/esp8266/tutorial')
-rw-r--r--docs/esp8266/tutorial/pwm.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/esp8266/tutorial/pwm.rst b/docs/esp8266/tutorial/pwm.rst
index 8de509427..17f8ede35 100644
--- a/docs/esp8266/tutorial/pwm.rst
+++ b/docs/esp8266/tutorial/pwm.rst
@@ -60,7 +60,7 @@ Then create a function to pulse the LED::
>>> def pulse(l, t):
... for i in range(20):
... l.duty(int(math.sin(i / 10 * math.pi) * 500 + 500))
- ... time.sleep_ms(t)
+ ... time.sleep(t/1000)
You can try this function out using::