Beispiel #1
0
 def isPressed(self) -> bool:
     return not GpioInterface.readPin(self.pin)
Beispiel #2
0
 def isMotionDetected(self) -> bool:
     return GpioInterface.readPin(self.pin)