[][src]Trait kernel::hil::sensors::AmbientLightClient

pub trait AmbientLightClient {
    fn callback(&self, lux: usize);
}

Client for receiving light intensity readings.

Required methods

fn callback(&self, lux: usize)

Called when an ambient light reading has completed.

  • lux: the most recently read ambient light reading in lux (lx).
Loading content...

Implementors

Loading content...