importpyb# test basic functionalityext=pyb.ExtInt('Y1',pyb.ExtInt.IRQ_RISING,pyb.Pin.PULL_DOWN,lambdal:print('line:',l))ext.disable()ext.enable()print(ext.line())ext.swint()# test swint while disabled, then again after re-enabledext.disable()ext.swint()ext.enable()ext.swint()# disable now that the test is finishedext.disable()