bf
This commit is contained in:
parent
e866d42377
commit
6a2489ed80
@ -301,7 +301,7 @@ def main():
|
||||
next_temp_t += temp_interval
|
||||
|
||||
# blinking LED
|
||||
if GPIO.input(power_controll_pin) == GPIO.LOW:
|
||||
if GPIO.input(power_controll_pin) == GPIO.HIGH:
|
||||
|
||||
if time() - LED_t < .1 and LED_status[0] == False:
|
||||
LED_status[0] = True
|
||||
@ -311,7 +311,7 @@ def main():
|
||||
GPIO.output(LED1_pin, GPIO.LOW)
|
||||
if time() - LED_t >= LED_t_interval:
|
||||
LED_t = time()
|
||||
elif GPIO.input(power_controll_pin) == GPIO.HIGH:
|
||||
elif GPIO.input(power_controll_pin) == GPIO.LOW:
|
||||
print('battery low')
|
||||
# GPIO.cleanup()
|
||||
# quit()
|
||||
|
Loading…
Reference in New Issue
Block a user