Hook up event listeners
This commit is contained in:
parent
d698048bda
commit
b65a9775dc
|
@ -27,6 +27,11 @@ def main():
|
||||||
eastButton = Button(eastPin)
|
eastButton = Button(eastPin)
|
||||||
westButton = Button(westPin)
|
westButton = Button(westPin)
|
||||||
|
|
||||||
|
eastButton.when_pressed(eastDoorClosed)
|
||||||
|
eastButton.when_released(eastDoorOpened)
|
||||||
|
westButton.when_pressed(westDoorClosed)
|
||||||
|
westButton.when_released(westDoorOpened)
|
||||||
|
|
||||||
pause()
|
pause()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue