From b680ddf5124ff0d62aa46d6693cf816dc4fc4c47 Mon Sep 17 00:00:00 2001 From: Jared Date: Mon, 21 Nov 2016 13:19:24 +0000 Subject: [PATCH] Changed blink timing. Fixed pin configuration --- cardlistener.py | 16 ++++++++-------- pin_config.json | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/cardlistener.py b/cardlistener.py index 34b5e6b..eb10906 100755 --- a/cardlistener.py +++ b/cardlistener.py @@ -8,21 +8,21 @@ pin_config = [] def btnBlink(): for i in range(3): GPIO.output(pin_config['fridge_red_LED'], GPIO.HIGH) - time.sleep(0.01) + time.sleep(0.02) GPIO.output(pin_config['fridge_grn_LED'], GPIO.HIGH) - time.sleep(0.01) + time.sleep(0.02) GPIO.output(pin_config['tools_red_LED'], GPIO.HIGH) - time.sleep(0.01) + time.sleep(0.02) GPIO.output(pin_config['tools_grn_LED'], GPIO.HIGH) - time.sleep(0.01) + time.sleep(0.02) GPIO.output(pin_config['fridge_red_LED'], GPIO.LOW) - time.sleep(0.01) + time.sleep(0.02) GPIO.output(pin_config['fridge_grn_LED'], GPIO.LOW) - time.sleep(0.01) + time.sleep(0.02) GPIO.output(pin_config['tools_red_LED'], GPIO.LOW) - time.sleep(0.01) + time.sleep(0.02) GPIO.output(pin_config['tools_grn_LED'], GPIO.LOW) - time.sleep(0.01) + time.sleep(0.02) if __name__ == '__main__': with open('pin_config.json') as pin_config_stream: diff --git a/pin_config.json b/pin_config.json index 7b2e2ee..c2c981c 100644 --- a/pin_config.json +++ b/pin_config.json @@ -2,8 +2,8 @@ "mode" : "BCM", "fridge_btn" : 14, "tools_btn" : 15, - "fridge_red_LED" : 22, - "fridge_grn_LED" : 17, - "tools_red_LED" : 23, - "tools_grn_LED" : 18 + "fridge_red_LED" : 23, + "fridge_grn_LED" : 18, + "tools_red_LED" : 22, + "tools_grn_LED" : 17 }