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/button_led.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/button_led.py')
-rw-r--r-- | examples/hwapi/button_led.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/hwapi/button_led.py b/examples/hwapi/button_led.py index bd6fe0172..c73bcfc89 100644 --- a/examples/hwapi/button_led.py +++ b/examples/hwapi/button_led.py @@ -1,4 +1,4 @@ -import utime +import time from hwconfig import LED, BUTTON # Light LED when (and while) a BUTTON is pressed @@ -6,4 +6,4 @@ from hwconfig import LED, BUTTON while 1: LED.value(BUTTON.value()) # Don't burn CPU - utime.sleep_ms(10) + time.sleep_ms(10) |