diff options
| author | Alex Vasylenko <lxv@users.noreply.github.com> | 2017-10-07 05:26:23 -0400 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2017-10-08 10:53:25 -0600 |
| commit | 9a9584aee0d3ca48fa5641f736c0c043df0505ff (patch) | |
| tree | b6be8cf3cb619a43be507e29e5580819176b1244 /docs | |
| parent | 211b44e6304a61aa6cf130e35806cb72356bec72 (diff) | |
Update pwm.rst
replace reference to non-existent `time.sleep_ms()`
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/esp8266/tutorial/pwm.rst | 2 |
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:: |
