diff --git a/init.py b/init.py index d668697..4c47153 100644 --- a/init.py +++ b/init.py @@ -32,7 +32,7 @@ class AlarmClock: self.loop() def loop(self): - currentButtonState = self.buttonGpio.read() + currentButtonState = not self.buttonGpio.read() if currentButtonState != self.lastKnownButtonState: self.lastKnownButtonState = currentButtonState if currentButtonState: