Fix handler setup

This commit is contained in:
Mike Cifelli 2022-12-26 17:19:02 -05:00
parent b65a9775dc
commit 3929922f49
1 changed files with 4 additions and 4 deletions

View File

@ -27,10 +27,10 @@ def main():
eastButton = Button(eastPin) eastButton = Button(eastPin)
westButton = Button(westPin) westButton = Button(westPin)
eastButton.when_pressed(eastDoorClosed) eastButton.when_pressed = eastDoorClosed
eastButton.when_released(eastDoorOpened) eastButton.when_released = eastDoorOpened
westButton.when_pressed(westDoorClosed) westButton.when_pressed = westDoorClosed
westButton.when_released(westDoorOpened) westButton.when_released = westDoorOpened
pause() pause()