Code: Select all
from pyb import Pin, ExtInt
def call():
print("Hello")
extint = ExtInt(Pin('X1'), ExtInt.IRQ_FALLING, Pin.PULL_UP, call())
while True:
pass
Code: Select all
from pyb import Pin, ExtInt
def call():
print("Hello")
extint = ExtInt(Pin('X1'), ExtInt.IRQ_FALLING, Pin.PULL_UP, call())
while True:
pass