mirror of
https://github.com/brmlab/brmdoor_libnfc.git
synced 2025-06-07 08:04:06 +02:00
Revert back invertion of signals, 1 opens lock, 0 closes
This reverts commit daf13e58e6
.
This commit is contained in:
parent
daf13e58e6
commit
31e4549e8b
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue