detect_i2c_addr

Function detect_i2c_addr 

Source
pub fn detect_i2c_addr<I2C: I2c>(
    i2c: &mut I2C,
) -> Result<SlaveAddr, AddrDetectionError<I2C::Error>>
Expand description

This function tries to detect the I2C address of the device by scanning all possible I2C addresses.