summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp32/tutorial
diff options
context:
space:
mode:
Diffstat (limited to 'docs/esp32/tutorial')
-rw-r--r--docs/esp32/tutorial/pwm.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/esp32/tutorial/pwm.rst b/docs/esp32/tutorial/pwm.rst
index 12d10a86b9..2650284d35 100644
--- a/docs/esp32/tutorial/pwm.rst
+++ b/docs/esp32/tutorial/pwm.rst
@@ -50,7 +50,7 @@ low all of the time.
* Example of a smooth frequency change::
- from utime import sleep
+ from time import sleep
from machine import Pin, PWM
F_MIN = 500
@@ -75,7 +75,7 @@ low all of the time.
* Example of a smooth duty change::
- from utime import sleep
+ from time import sleep
from machine import Pin, PWM
DUTY_MAX = 2**16 - 1