summaryrefslogtreecommitdiffstatshomepage
path: root/tests/pyb/extint.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pyb/extint.py')
-rw-r--r--tests/pyb/extint.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pyb/extint.py b/tests/pyb/extint.py
new file mode 100644
index 0000000000..20648995bc
--- /dev/null
+++ b/tests/pyb/extint.py
@@ -0,0 +1,6 @@
+ext = pyb.ExtInt('X1', pyb.ExtInt.IRQ_RISING, pyb.Pin.PULL_DOWN, lambda l:print('line:', l))
+ext.disable()
+ext.enable()
+print(ext.line())
+ext.swint()
+ext.disable()