From b65a9775dc01de250355b66bdfb0bc2502158bac Mon Sep 17 00:00:00 2001 From: Mike Cifelli <1836280-mike-cifelli@users.noreply.gitlab.com> Date: Mon, 26 Dec 2022 17:14:02 -0500 Subject: [PATCH] Hook up event listeners --- garage.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/garage.py b/garage.py index 34cb1a3..47829d1 100644 --- a/garage.py +++ b/garage.py @@ -27,6 +27,11 @@ def main(): eastButton = Button(eastPin) westButton = Button(westPin) + eastButton.when_pressed(eastDoorClosed) + eastButton.when_released(eastDoorOpened) + westButton.when_pressed(westDoorClosed) + westButton.when_released(westDoorOpened) + pause()