summaryrefslogtreecommitdiffstatshomepage
path: root/tests/pyb/extint.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-04 12:40:51 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-04 12:40:51 +0100
commitcda363a036f550707ed48d94e1be3ad54dda90b6 (patch)
tree1719b19ce5a3a1fa191ad1ecfe8a49082f05ad5f /tests/pyb/extint.py
parentc327c0de5d7a07cc0afa2fbad5aa33f59d90aad0 (diff)
downloadmicropython-cda363a036f550707ed48d94e1be3ad54dda90b6.tar.gz
micropython-cda363a036f550707ed48d94e1be3ad54dda90b6.zip
tests, pyb: Add 'import pyb' when needed.
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()