mirror of
https://github.com/micropython/micropython.git
synced 2026-01-08 05:00:26 +01:00
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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user