tests/pybnative: Make while.py test run on boards without pyb.delay.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import pyb
|
import time, pyb
|
||||||
|
|
||||||
|
|
||||||
@micropython.native
|
@micropython.native
|
||||||
@@ -8,7 +8,7 @@ def f(led, n, d):
|
|||||||
while i < n:
|
while i < n:
|
||||||
print(i)
|
print(i)
|
||||||
led.toggle()
|
led.toggle()
|
||||||
pyb.delay(d)
|
time.sleep_ms(d)
|
||||||
i += 1
|
i += 1
|
||||||
led.off()
|
led.off()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user