Update pwm.rst

replace reference to non-existent `time.sleep_ms()`
This commit is contained in:
Alex Vasylenko 2017-10-07 05:26:23 -04:00 committed by Scott Shawcroft
parent 211b44e630
commit 9a9584aee0

View File

@ -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::