ExtInt has no deinit(), and when calling the constructor again for the same pin one gets an exception: ExtInt vector 1 is already in use
Code: Select all
def callback1(line):
print ("cb 1")
def callback2(line):
print ("cb 2")
pin = pyb.Pin.board.X1
irInt = pyb.ExtInt(pin, pyb.ExtInt.IRQ_RISING_FALLING, pyb.Pin.PULL_UP, callback1)
irInt = pyb.ExtInt(pin, pyb.ExtInt.IRQ_RISING_FALLING, pyb.Pin.PULL_UP, callback2)