ens160.i2c

I2C Retry wrapper.

class SMBusRetryingI2C(ens160.icommunication.ICommunication):

I2C Helper class that automatically retries.

SMBusRetryingI2C( address: int, interface_id: int, retries: int = 5, retry_sleep: float = 0.01)
def write(self, register: ens160.registers.Registers, data: list[int] | int):

Write data to the I2C bus.

def read(self, register: ens160.registers.Registers, size: int):

Read data from the I2C bus.

def SMBus(interface: int):