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

pub trait ProximityClient {
    fn callback(&self, value: u8);
}

Required methods

fn callback(&self, value: u8)

Called when a proximity reading has completed.

  • value: the most recently read proximity value which ranges [0 , 255]... where 255 -> object is closest readable distance, 0 -> object is farthest readable distance.
Loading content...

Implementors

Loading content...