diff --git a/Button.py b/Button.py index c360323..3c77236 100644 --- a/Button.py +++ b/Button.py @@ -36,4 +36,7 @@ class Button(): self.onPushDown() self.pushDownTimeStamp = time_ms else: - pass \ No newline at end of file + pass + + def isPushed(self): + return self.pin.value() ^ self.inverted \ No newline at end of file