def eventEnd(self, object=0):
# eventEnd()
# eventEnd(object)
# ** object: set Interrupt pin: 1=Button, 2=Encoder >> default: 0(all)
if self.__eventStatus!=0x00:
if (object==0 or object==1) and self.__eventStatus&0x03!=0x00:
GPIO.remove_event_detect(self.PinSW)
self.__eventStatus&=0xFC
if (object==0 or object==2) and self.__eventStatus&0x0C!=0x00:
GPIO.remove_event_detect(self.PinA )
self.__eventStatus&=0xF3
ButtonEncoder.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录