encoder2 = Pin('P3', Pin.OUT_PP) extint1 = pyb.ExtInt(encoder1,pyb.ExtInt.IRQ_RISING_FALLING,pyb.Pin.PULL_UP, EncoderCount)
请提供全部源码。
具体是什么硬件?