Trait esp_ward::peripherals::LumiSensor
source · pub trait LumiSensor {
// Required method
fn get_lux(&mut self) -> Result<f32, PeripheralError>;
}
Expand description
Trait for peripherals that can measure luminance.
Required Methods§
sourcefn get_lux(&mut self) -> Result<f32, PeripheralError>
fn get_lux(&mut self) -> Result<f32, PeripheralError>
Measures the ambient light intensity in lux.