summaryrefslogtreecommitdiff
path: root/examples/hwapi/soft_pwm.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hwapi/soft_pwm.py')
-rw-r--r--examples/hwapi/soft_pwm.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/hwapi/soft_pwm.py b/examples/hwapi/soft_pwm.py
index 72291b0ec..466de08f0 100644
--- a/examples/hwapi/soft_pwm.py
+++ b/examples/hwapi/soft_pwm.py
@@ -1,4 +1,4 @@
-import utime
+import time
from hwconfig import LED
@@ -15,10 +15,10 @@ def pwm_cycle(led, duty, cycles):
for i in range(cycles):
if duty:
led.on()
- utime.sleep_ms(duty)
+ time.sleep_ms(duty)
if duty_off:
led.off()
- utime.sleep_ms(duty_off)
+ time.sleep_ms(duty_off)
# At the duty setting of 1, an LED is still pretty bright, then