Function scan_i2c_with_ctrl

Source
pub fn scan_i2c_with_ctrl<I2C, L>(
    i2c: &mut I2C,
    logger: &mut L,
    control_bytes: &[u8],
)
where I2C: I2c, L: Logger,
Expand description

Scan the I2C bus for devices by sending specified control bytes.

ยงArguments

  • i2c - Mutable reference to the I2C interface implementing embedded_hal::i2c::I2c.
  • logger - Mutable reference to a logger implementing the Logger trait.
  • control_bytes - Byte slice to send as control bytes during the scan.

This function attempts to write the provided control bytes to each device address, logging those that respond successfully.