add ledtest on boot
This commit is contained in:
parent
609f3ac2e6
commit
816b83f6fd
1 changed files with 9 additions and 0 deletions
9
main.py
9
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:
|
||||
|
||||
|
|
Loading…
Reference in a new issue