Skip to content

Commit 9a9584a

Browse files
lxvtannewt
authored andcommitted
Update pwm.rst
replace reference to non-existent `time.sleep_ms()`
1 parent 211b44e commit 9a9584a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/esp8266/tutorial/pwm.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Then create a function to pulse the LED::
6060
>>> def pulse(l, t):
6161
... for i in range(20):
6262
... l.duty(int(math.sin(i / 10 * math.pi) * 500 + 500))
63-
... time.sleep_ms(t)
63+
... time.sleep(t/1000)
6464

6565
You can try this function out using::
6666

0 commit comments

Comments
 (0)