From 31e4549e8b8969ff6d7ec95d24af1505438c25b7 Mon Sep 17 00:00:00 2001 From: Ondrej Mikle Date: Tue, 11 Oct 2022 20:31:41 +0200 Subject: [PATCH] Revert back invertion of signals, 1 opens lock, 0 closes This reverts commit daf13e58e6865ee4f921cb2308b6bed4f1059eb6. --- unlocker.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unlocker.py b/unlocker.py index 512c746..1a6890f 100644 --- a/unlocker.py +++ b/unlocker.py @@ -46,9 +46,9 @@ class UnlockerWiringPi(Unlocker): """Unlocks lock at configured pin by pulling it high. """ import wiringpi - wiringpi.digitalWrite(self.lockPin, 0) - time.sleep(self.lockOpenedSecs) wiringpi.digitalWrite(self.lockPin, 1) + time.sleep(self.lockOpenedSecs) + wiringpi.digitalWrite(self.lockPin, 0) def lock(self): """ @@ -56,5 +56,5 @@ class UnlockerWiringPi(Unlocker): so that lock is not left disengaged. """ import wiringpi - wiringpi.digitalWrite(self.lockPin, 1) + wiringpi.digitalWrite(self.lockPin, 0)