From 3929922f493fa27be8b809d59e30716e1de22428 Mon Sep 17 00:00:00 2001 From: Mike Cifelli <1836280-mike-cifelli@users.noreply.gitlab.com> Date: Mon, 26 Dec 2022 17:19:02 -0500 Subject: [PATCH] Fix handler setup --- garage.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/garage.py b/garage.py index 47829d1..ad1b957 100644 --- a/garage.py +++ b/garage.py @@ -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()