Skip to main content

I2cConnectionSettings Class

NuGet: GHIElectronics.TinyCLR.Devices.I2c
Assembly: System.Device.I2c
Namespace: System.Device.I2c

Per-device I²C settings in the standard System.Device.I2c shape. TinyCLR maps these onto its native I²C driver via I2cDevice.Create(I2cConnectionSettings).

public sealed class I2cConnectionSettings

Constructors

I2cConnectionSettings(int busId, int deviceAddress)

public I2cConnectionSettings(int busId, int deviceAddress)

Creates settings for a device at the given address on the given bus.

Properties

BusId

public int BusId { get; }

The bus this device is on (-1 for software I²C).

DeviceAddress

public int DeviceAddress { get; set; }

The 7-bit device address.

BusSpeed

public I2cBusSpeed BusSpeed { get; set; }

The bus clock speed. Defaults to standard mode.