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.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/pyb/extint.py b/tests/pyb/extint.py
index 20648995bc..47d84c8b5e 100644
--- a/tests/pyb/extint.py
+++ b/tests/pyb/extint.py
@@ -1,3 +1,5 @@
+import pyb
+
ext = pyb.ExtInt('X1', pyb.ExtInt.IRQ_RISING, pyb.Pin.PULL_DOWN, lambda l:print('line:', l))
ext.disable()
ext.enable()