Link Search Menu Expand Document

I2C Devices

class com.diozero.api.I2CDevice (controller, address, addressSize, clockFrequency, byteOrder) source ΒΆ

Class for reading / writing to I2C devices.

  • controller (int) - I2C bus.

  • address (int) - I2C device address.

  • addressSize (int) - I2C device address size. Can be 7 or 10.

  • clockFrequency (int) - I2C clock frequency.

  • byteOrder (int) - The ByteOrder to use when sending data to this device.