pub fn detect_i2c_addr<I2C: I2c>( i2c: &mut I2C, ) -> Result<SlaveAddr, AddrDetectionError<I2C::Error>>
This function tries to detect the I2C address of the device by scanning all possible I2C addresses.