Skip to content
Snippets Groups Projects
Commit 92a8fad2 authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Add startup signaling for LED

parent 07ed2e31
No related branches found
No related tags found
No related merge requests found
......@@ -128,6 +128,13 @@ def set_led(ledstate, config):
time.sleep(repeat(config["led"]["failure_on_time"], i))
LEDS.fill((0, 0, 0))
time.sleep(repeat(config["led"]["failure_off_time"], i))
elif ledstate in ["startup"]:
# Display the fitting LED color for the state at the given repetition
for i in range(4):
LEDS.fill((255,255,255))
time.sleep(0.2)
LEDS.fill((0, 0, 0))
time.sleep(0.1)
# Return to default standby LED color in the end
LEDS.fill(config["led"]["standby_color"][0])
......@@ -322,7 +329,7 @@ def main():
outputThread.start()
# Set the LED to display readyness
dispatch_led("default", config)
dispatch_led("startup", config)
# On the main thread handle communications between the two other threads. That means:
# If there is sth. on the input queue, put it onto the output queue if it fits the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment