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