From 227527529072339a15b34c119249b386f9ea9b9e Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 2 Oct 2019 11:35:28 +0100 Subject: [PATCH] Now cycles through R,G,B on startup for detector LEDs on RPi. --- GWalarm_screens.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/GWalarm_screens.py b/GWalarm_screens.py index 5fd1455..d617c42 100644 --- a/GWalarm_screens.py +++ b/GWalarm_screens.py @@ -735,6 +735,19 @@ class EventContainer(ButtonBehavior,GridLayout): def statusupdate(obj): global main_flag main_flag=0 + + if pixels: + def color_all(color): + for i in range(2,6): + pixels[i] = color + pixels.show() + time.sleep(1) + + startup_cycle = ((255,0,0),(0,255,0),(0,0,255)) + for col in startup_cycle: + color_all(col) + + print('Detector status LED init complete...') while True: data,stats,names = statusdetect() -- GitLab