summaryrefslogtreecommitdiffstatshomepage
path: root/tests/ports/stm32/extint.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ports/stm32/extint.py')
-rw-r--r--tests/ports/stm32/extint.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ports/stm32/extint.py b/tests/ports/stm32/extint.py
index 5510600020..d3161f7cc7 100644
--- a/tests/ports/stm32/extint.py
+++ b/tests/ports/stm32/extint.py
@@ -1,7 +1,8 @@
import pyb
# test basic functionality
-ext = pyb.ExtInt("X5", pyb.ExtInt.IRQ_RISING, pyb.Pin.PULL_DOWN, lambda l: print("line:", l))
+pin = pyb.Pin.cpu.A4
+ext = pyb.ExtInt(pin, pyb.ExtInt.IRQ_RISING, pyb.Pin.PULL_DOWN, lambda l: print("line:", l))
ext.disable()
ext.enable()
print(ext.line())