def main(): try: while True: showBatteryStatus() time.sleep(30) except KeyboardInterrupt: blink.off()
def main(): try: while True: showTreeStatus() time.sleep(60) except KeyboardInterrupt: blink.off()