From 816b83f6fd9cf26c450598fd689dac2caa077deb Mon Sep 17 00:00:00 2001 From: Fusselkater Date: Wed, 10 Aug 2022 18:47:21 +0200 Subject: [PATCH] add ledtest on boot --- main.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.py b/main.py index 16a7212..d12581f 100644 --- a/main.py +++ b/main.py @@ -51,6 +51,15 @@ def check_daylight_saving(current_time): return True return False +# Test LEDs before startup +for hour in range(0, 11): + set_time(hour, 0) + time.sleep(0.1) +for minute in range(0, 59): + set_time(0, minute) + time.sleep(0.05) +set_time(0, 0) + # Main Loop while True: