pub struct T1000eLedEngine { /* private fields */ }Expand description
State-aware T1000-E LED policy. One-shot confirmations preempt persistent state; Charging and Low Battery preempt Attention; Attention replaces only the ordinary heartbeat.
Implementations§
Source§impl T1000eLedEngine
impl T1000eLedEngine
pub fn new(start_ms: u64) -> Self
Sourcepub fn start_alert(&mut self, now_ms: u64)
pub fn start_alert(&mut self, now_ms: u64)
Start the locate alert. Idempotent, like LedEngine::start_alert.
Sourcepub fn stop_alert(&mut self)
pub fn stop_alert(&mut self)
Stop the locate alert.
Sourcepub fn alert_active(&self) -> bool
pub fn alert_active(&self) -> bool
Whether the locate alert is running.
pub fn set_battery(&mut self, battery: BatteryState)
pub fn set_attention(&mut self, attention: bool)
Sourcepub fn set_ambient_millilux(&mut self, millilux: Option<u32>)
pub fn set_ambient_millilux(&mut self, millilux: Option<u32>)
Feed the most recent ambient light reading. Everything the engine shows except the locate alert dims with it — the alert stays at full brightness because a radio being searched for values being seen over being comfortable, the same priority that lets it outrank the critical-battery blackout.