Fix handler setup
This commit is contained in:
parent
b65a9775dc
commit
3929922f49
|
@ -27,10 +27,10 @@ def main():
|
|||
eastButton = Button(eastPin)
|
||||
westButton = Button(westPin)
|
||||
|
||||
eastButton.when_pressed(eastDoorClosed)
|
||||
eastButton.when_released(eastDoorOpened)
|
||||
westButton.when_pressed(westDoorClosed)
|
||||
westButton.when_released(westDoorOpened)
|
||||
eastButton.when_pressed = eastDoorClosed
|
||||
eastButton.when_released = eastDoorOpened
|
||||
westButton.when_pressed = westDoorClosed
|
||||
westButton.when_released = westDoorOpened
|
||||
|
||||
pause()
|
||||
|
||||
|
|
Loading…
Reference in New Issue