diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2022-08-19 22:58:37 +1000 |
---|---|---|
committer | Jim Mussared <jim.mussared@gmail.com> | 2023-06-08 17:54:24 +1000 |
commit | 5fd042e7d1610b4d42acfc523441468f2ac28c6f (patch) | |
tree | 87903a5cec5409b89f38fa7d0809d80ca7b127d5 /examples/hwapi/soft_pwm.py | |
parent | 9d7eac07138b6e02f4c0775dc70f36fdd69432a2 (diff) |
all: Replace all uses of umodule in Python code.
Applies to drivers/examples/extmod/port-modules/tools.
This work was funded through GitHub Sponsors.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'examples/hwapi/soft_pwm.py')
-rw-r--r-- | examples/hwapi/soft_pwm.py | 6 |
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 |