1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/// Trait for any LED output backend.
/// Implementations handle the actual hardware (GPIO PWM, WS2812B, etc.).
///
/// # Call contract
///
/// [`state::LightState`] drives implementations under these rules:
///
/// - `set_on(false)` must drive the output dark immediately.
/// - `set_on(true)` must restore the most recently set color/brightness on its
/// own. The identify/effect blink calls *only* `set_on` in alternation, so an
/// implementation that treats `set_on(true)` as a bare flag renders identify
/// invisible.
/// - Hardware errors are not propagated: the state machine has no recovery
/// action for a failed LED write, so implementations log and continue.