Skip to main content

I2cConnectionSettings Class

Namespace: System.Device.I2c · Assembly: GHIElectronics.TinyCLR.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)

Builds a 7-bit settings object with the given role (master/slave). (inherited)

ParameterTypeDescription
busIdint
deviceAddressint

Properties

BusId

public int BusId { get; }

No description available.

DeviceAddress

public int DeviceAddress { get; set; }

No description available.

BusSpeed

public I2cBusSpeed BusSpeed { get; set; }

Bus speed in Hz (e.g. 100_000 for standard, 400_000 for fast mode). (inherited)