I've been trying to substitute time.sleep(2) with the code shown below... For the life of me
I can not get it to work, what am I doing wrong or not seeing?
Code: Select all
import time
start = time.ticks_ms()
while time.ticks_diff(time.ticks_ms(), start) < 2000:
print('Loop')
print('End Loop')
tried stock (stable) firmware... The same...
Code: Select all
MicroPython v1.19.1-292-g59e3348c1-dirty on 2022-09-04; Raspberry Pi Pico W with RP2040
Type "help()" for more information.
MicroPython v1.19.1 on 2022-09-08; Raspberry Pi Pico W with RP2040
Type "help()" for more information.