Trait kernel::hil::sensors::AmbientLightClient

source ·
pub trait AmbientLightClient {
    // Required method
    fn callback(&self, lux: usize);
}
Expand description

Client for receiving light intensity readings.

Required Methods§

source

fn callback(&self, lux: usize)

Called when an ambient light reading has completed.

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

Implementors§