示例#1
0
文件: button.py 项目: Lewak/Turret
 def isPressed(self) -> bool:
     return not GpioInterface.readPin(self.pin)
示例#2
0
 def isMotionDetected(self) -> bool:
     return GpioInterface.readPin(self.pin)