bug fix
This commit is contained in:
parent
3405114cba
commit
5957b30b8f
@ -41,10 +41,10 @@ def main():
|
|||||||
|
|
||||||
t0 = time()
|
t0 = time()
|
||||||
|
|
||||||
loop_t = time()
|
# loop_t = time()
|
||||||
|
|
||||||
while time() - t0 < 5:
|
while time() - t0 < 5:
|
||||||
print(time() - loop_t)
|
# print(time() - loop_t)
|
||||||
# LED1 blink every 2 sec
|
# LED1 blink every 2 sec
|
||||||
if time() - LED1_t < .1 and LED_status[0] == False:
|
if time() - LED1_t < .1 and LED_status[0] == False:
|
||||||
LED_status[0] = True
|
LED_status[0] = True
|
||||||
@ -77,7 +77,7 @@ def main():
|
|||||||
print('button 2 pressed')
|
print('button 2 pressed')
|
||||||
|
|
||||||
|
|
||||||
loop_t = time()
|
# loop_t = time()
|
||||||
|
|
||||||
|
|
||||||
GPIO.cleanup()
|
GPIO.cleanup()
|
||||||
|
Loading…
Reference in New Issue
Block a user