Commit 11c74940 authored by Ralf's avatar Ralf
Browse files

no need to press lock buttons so long

parent f65d130e
......@@ -44,8 +44,8 @@ class Actor:
def __init__(self, i2c):
self._CMDs = {
Actor.CMD_UNLOCK: Actor.CMD("unlock", pin=Pin(0x21,3), tid=0, todo=[(True, 0.3), (False, 0.1)], i2c=i2c, invert=True),
Actor.CMD_LOCK: Actor.CMD( "lock", pin=Pin(0x21,2), tid=0, todo=[(True, 0.3), (False, 0.1)], i2c=i2c, invert=True),
Actor.CMD_UNLOCK: Actor.CMD("unlock", pin=Pin(0x21,3), tid=0, todo=[(True, 0.1), (False, 0.1)], i2c=i2c, invert=True),
Actor.CMD_LOCK: Actor.CMD( "lock", pin=Pin(0x21,2), tid=0, todo=[(True, 0.1), (False, 0.1)], i2c=i2c, invert=True),
Actor.CMD_BUZZ: Actor.CMD( "buzz", pin=Pin(0x21,1), tid=1, todo=[(True, 2.5), (False, 0.1)], i2c=i2c, invert=False),
}
# launch threads, all running the "_execute" method
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment