次の方法で共有


Board.CreateOrGetI2cBus メソッド

定義

オーバーロード

CreateOrGetI2cBus(Int32)

I2C バス インスタンスを作成するか、このバスの既存のインスタンスを返します

CreateOrGetI2cBus(Int32, Int32[])

I2C バス インスタンスを作成するか、このバスの既存のインスタンスを返します

CreateOrGetI2cBus(Int32)

I2C バス インスタンスを作成するか、このバスの既存のインスタンスを返します

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

パラメーター

busNumber
Int32

作成する I2C バス番号

戻り値

I2C バス インスタンス

適用対象

CreateOrGetI2cBus(Int32, Int32[])

I2C バス インスタンスを作成するか、このバスの既存のインスタンスを返します

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

パラメーター

busNumber
Int32

作成する I2C バス番号

pinAssignment
Int32[]

I2C に使用するピンのセット。 バスが既に存在する場合は null を指定できます

戻り値

I2C バス インスタンス

適用対象