[−][src]Trait rust_i2c::Stream
High level read/write trait for I2C connections to implement
Required Methods
fn write(&self, command: Command) -> Result<()>
fn read(&self, command: Command) -> Result<Vec<u8>>
fn transfer(&self, command: Command, delay: Duration) -> Result<Vec<u8>>
Writes I2C command and reads result
Arguments
command
- Command to write and read from
delay
- Delay between writing and reading