From 065df5568c258a9f20a9f02b10be9b16dc95da6f Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 26 May 2022 12:31:31 +1000 Subject: tests: Move native while test from pybnative to micropython. And make it so this test can run on any target. LED and time testing has been removed from this test, that can now be tested using: ./run-tests.py --via-mpy --emit native. Signed-off-by: Damien George --- tests/pybnative/while.py | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 tests/pybnative/while.py (limited to 'tests/pybnative/while.py') diff --git a/tests/pybnative/while.py b/tests/pybnative/while.py deleted file mode 100644 index 10625e871..000000000 --- a/tests/pybnative/while.py +++ /dev/null @@ -1,17 +0,0 @@ -import time, pyb - - -@micropython.native -def f(led, n, d): - led.off() - i = 0 - while i < n: - print(i) - led.toggle() - time.sleep_ms(d) - i += 1 - led.off() - - -f(pyb.LED(1), 2, 150) -f(pyb.LED(2), 4, 50) -- cgit v1.2.3