pub fn write<A: Into<I2cAddress>>(&mut self, address: A, buffer: &[u8]) -> Result<(), Error> {
        self.transaction(address, &mut [Operation::Write(buffer)])
    }
# use esp_hal::i2c::master::{Config, I2c};
# let mut i2c = I2c::new(
#   peripherals.I2C0,
#   Config::default(),
# )?;
# const DEVICE_ADDR: u8 = 0x77;
i2c.write(DEVICE_ADDR, &[0xaa])?;
# Ok(())
# }
```
esp-hal/src/i2c/master/mod.rs