From acddf676338e322b1313115091c122ec3dcc8e98 Mon Sep 17 00:00:00 2001 From: Alex Vasylenko Date: Sat, 7 Oct 2017 05:26:23 -0400 Subject: [PATCH] Update pwm.rst replace reference to non-existent `time.sleep_ms()` --- docs/esp8266/tutorial/pwm.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/esp8266/tutorial/pwm.rst b/docs/esp8266/tutorial/pwm.rst index 8de509427c116..17f8ede3563d2 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::