add ledtest on boot

This commit is contained in:
Fusselkater 2022-08-10 18:47:21 +02:00
parent 609f3ac2e6
commit 816b83f6fd

View file

@ -51,6 +51,15 @@ def check_daylight_saving(current_time):
return True return True
return False 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 # Main Loop
while True: while True: