capsules_extra

Module ambient_light

Source
Expand description

Shared userland driver for light sensors.

You need a device that provides the hil::sensors::AmbientLight trait.


let light = static_init!(
    capsules::ambient_light::AmbientLight<'static>,
    capsules::ambient_light::AmbientLight::new(isl29035,
        board_kernel.create_grant(&grant_cap)));
hil::sensors::AmbientLight::set_client(isl29035, ambient_light);

Structs§

Constants§