bf
This commit is contained in:
parent
c200adb5ae
commit
edc19f1526
@ -311,7 +311,7 @@ def main():
|
|||||||
GPIO.output(LED1_pin, GPIO.LOW)
|
GPIO.output(LED1_pin, GPIO.LOW)
|
||||||
if time() - LED_t >= LED_t_interval:
|
if time() - LED_t >= LED_t_interval:
|
||||||
LED_t = time()
|
LED_t = time()
|
||||||
else:
|
elif GPIO.input(power_controll_pin) == GPIO.HIGH:
|
||||||
print('battery low')
|
print('battery low')
|
||||||
# GPIO.cleanup()
|
# GPIO.cleanup()
|
||||||
# quit()
|
# quit()
|
||||||
|
Loading…
Reference in New Issue
Block a user