bf
This commit is contained in:
		
							parent
							
								
									af4c920a8c
								
							
						
					
					
						commit
						f91e2b780d
					
				| @ -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 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user