예제 #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)