From 71c44d303e830f6dde1fee3d078e74ba50a23864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonard=20G=C3=B6hrs?= Date: Thu, 7 Dec 2023 10:43:20 +0100 Subject: [PATCH] ui: reduce idle brightness of the status led MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The first hardware samples of LXA TACs with status LEDs showed them to be far to bright. Since then we have reduced the current through the "normal" (non-pwm) status LEDs by a factor of 33 in hardware. The brightness of the pwm LEDs was only reduced in hardware by a factor of 7.5. This allows us to still make them light up quite brightly if we want them to. In the idle state their brightness should however match the brightness of the other LEDs. Dim them in software by a factor of 33/7.5 = 4.4. Signed-off-by: Leonard Göhrs --- src/ui.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui.rs b/src/ui.rs index 5796afc..cf9cc29 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -161,7 +161,7 @@ impl Ui { led_status_pattern.set(pattern_locator_on.clone()); } else { // Green light when locator is off - led_status_color.set((0.0, 1.0, 0.0)); + led_status_color.set((0.0, 0.23, 0.0)); led_status_pattern.set(pattern_locator_off.clone()); } }