From f91e2b780d009bd0090788295a436ef39db114e8 Mon Sep 17 00:00:00 2001 From: tillraab Date: Tue, 17 Sep 2019 14:52:56 +0200 Subject: [PATCH] bf --- electrode_check.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrode_check.py b/electrode_check.py index 56360f6..cd9c436 100644 --- a/electrode_check.py +++ b/electrode_check.py @@ -302,6 +302,7 @@ def main(): LED_status[0] = True while GPIO.input(Button1_pin) == GPIO.LOW: sleep(.1) + sleep(2) GPIO.output(LED1_pin, GPIO.LOW) LED_status[0] = False @@ -320,7 +321,7 @@ def main(): init_fig = True try: - while GPIO.input(Button1_pin) == GPIO.HIGH: + while GPIO.input(Button1_pin) == GPIO.LOW: # blinking LED if time() - LED_t < .1 and LED_status[0] == False: LED_status[0] = True