From 9a9584aee0d3ca48fa5641f736c0c043df0505ff Mon Sep 17 00:00:00 2001 From: Alex Vasylenko Date: Sat, 7 Oct 2017 05:26:23 -0400 Subject: 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 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:: -- cgit v1.2.3