write_read()#

abstractmethod I2CDriverBase.write_read(
address: int,
data: bytes,
read_len: int,
) → bytes[source]#

Write data then immediately read read_len bytes from address using a repeated START.

Used for register reads: write the register address, then read its contents without releasing the bus. No STOP is issued between the write and the read.