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.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/pybnative/while.py b/tests/pybnative/while.py
index 3ea7221ea..0f397dd37 100644
--- a/tests/pybnative/while.py
+++ b/tests/pybnative/while.py
@@ -1,5 +1,6 @@
import pyb
+
@micropython.native
def f(led, n, d):
led.off()
@@ -11,5 +12,6 @@ def f(led, n, d):
i += 1
led.off()
+
f(pyb.LED(1), 2, 150)
f(pyb.LED(2), 4, 50)