Board.CreateOrGetI2cBus Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for