From ccd677b813d83bc8350c8d81c24e84af58aa220d Mon Sep 17 00:00:00 2001 From: dylangoepel <54411148+dylangoepel@users.noreply.github.com> Date: Tue, 14 Jan 2020 16:37:26 +0100 Subject: [PATCH] Update button.py --- button.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/button.py b/button.py index bbf31b2..a952292 100644 --- a/button.py +++ b/button.py @@ -162,14 +162,14 @@ gpio.setup(4, gpio.IN, pull_up_down=gpio.PUD_UP) strip = NeoPixel(D18, 36, brightness=0.5, pixel_order=GRB, auto_write=False) -# Create subhandles for each button handles +# Create subhandles for each button leds = { "cellar": ButtonStrip(strip, list(range(1, 12))), "center": ButtonStrip(strip, list(range(12, 24))), "aerie": ButtonStrip(strip, list(range(24, 36))), } -# Create button press sensor +# Create button press sensor for input pins buttons = { 22: "cellar", 23: "aerie", @@ -222,6 +222,6 @@ while True: action = str(press) if action == "center": - target=doors[selection].open() + doors[selection].open() elif action != selection: doors[selection].close()