mirror of
https://github.com/brmlab/brmdoor_libnfc.git
synced 2025-06-07 08:04:06 +02:00
Invert unlocker signals, 0 is unlock, 1 is lock
This commit is contained in:
parent
cca9b4bbe0
commit
daf13e58e6
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, 1)
|
||||
time.sleep(self.lockOpenedSecs)
|
||||
wiringpi.digitalWrite(self.lockPin, 0)
|
||||
time.sleep(self.lockOpenedSecs)
|
||||
wiringpi.digitalWrite(self.lockPin, 1)
|
||||
|
||||
def lock(self):
|
||||
"""
|
||||
|
@ -56,5 +56,5 @@ class UnlockerWiringPi(Unlocker):
|
|||
so that lock is not left disengaged.
|
||||
"""
|
||||
import wiringpi
|
||||
wiringpi.digitalWrite(self.lockPin, 0)
|
||||
wiringpi.digitalWrite(self.lockPin, 1)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue