|
|
|
@ -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:
|
|
|
|
|