Function vl53l1::read_slice
source · pub fn read_slice<I>(
i2c: &mut I,
index: Index,
slice: &mut [u8]
) -> Result<(), <I as WriteRead<u8>>::Error>where
I: WriteRead<u8>,
Expand description
Read the value at the given index into the given slice.
The length of the given slice must represent the length of the expected amount of data to be read.