summaryrefslogtreecommitdiff
path: root/tests/pybnative/while.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pybnative/while.py')
-rw-r--r--tests/pybnative/while.py17
1 files changed, 0 insertions, 17 deletions
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)