Board.CreateI2cDevice(I2cConnectionSettings) 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.
Create an I2C device instance on a default bus.
public System.Device.I2c.I2cDevice CreateI2cDevice (System.Device.I2c.I2cConnectionSettings connectionSettings);
member this.CreateI2cDevice : System.Device.I2c.I2cConnectionSettings -> System.Device.I2c.I2cDevice
Public Function CreateI2cDevice (connectionSettings As I2cConnectionSettings) As I2cDevice
Parameters
- connectionSettings
- I2cConnectionSettings
Connection parameters (contains I2C address and bus number)
Returns
An I2C device instance
Remarks
This method can only be used for bus numbers where the corresponding pins are hardwired (i.e. bus 0 and 1 on the Raspi always use pins 0/1 and 2/3)