I2CBase Class

I2CBase serves as a common superclass for I2C device classes.  Subclasses inherit the InitI2CAsync method and the I2CSpeed enumeration type.

InitI2CAsync must be called before any other I2C methods are called.

I2cSpeed

Sets the I2C clock speed. The speed can be set to either 100kHz (standard mode) or 400kHz (fast mode).

Download: file
public enum I2CSpeed { I2C_100kHz, I2C_400kHz };

InitI2CAsync

The InitI2CAsync is an asynchronous method that creates and initializes a Windows Core IoT I2C device object. It takes a single optional argument of type I2CSpeed. Default is standard mode (100kHz).

Download: file
public async Task InitI2CAsync(I2CSpeed i2cSpeed = I2CSpeed.I2C_100kHz)
This guide was first published on Nov 22, 2016. It was last updated on Nov 22, 2016. This page (I2CBase Class) was last updated on Sep 12, 2019.