Skip to content

Commit

Permalink
ui: reduce idle brightness of the status led
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
hnez committed Dec 7, 2023
1 parent 803b208 commit 71c44d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down

0 comments on commit 71c44d3

Please sign in to comment.