Board.CreateOrGetI2cBus Method

Definition

Overloads

CreateOrGetI2cBus(Int32)

Create an I2C bus instance or return the existing instance for this bus

CreateOrGetI2cBus(Int32, Int32[])

Create an I2C bus instance or return the existing instance for this bus

CreateOrGetI2cBus(Int32)

Create an I2C bus instance or return the existing instance for this bus

public System.Device.I2c.I2cBus CreateOrGetI2cBus (int busNumber);
member this.CreateOrGetI2cBus : int -> System.Device.I2c.I2cBus
Public Function CreateOrGetI2cBus (busNumber As Integer) As I2cBus

Parameters

busNumber
Int32

I2C bus number to create

Returns

An I2C bus instance

Applies to

CreateOrGetI2cBus(Int32, Int32[])

Create an I2C bus instance or return the existing instance for this bus

public virtual System.Device.I2c.I2cBus CreateOrGetI2cBus (int busNumber, int[]? pinAssignment);
abstract member CreateOrGetI2cBus : int * int[] -> System.Device.I2c.I2cBus
override this.CreateOrGetI2cBus : int * int[] -> System.Device.I2c.I2cBus
Public Overridable Function CreateOrGetI2cBus (busNumber As Integer, pinAssignment As Integer()) As I2cBus

Parameters

busNumber
Int32

I2C bus number to create

pinAssignment
Int32[]

The set of pins to use for I2C. Can be null if the bus already exists

Returns

An I2C bus instance

Applies to