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

Required Methods

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.

Implementors