GrovePi(I2cDevice, Boolean) Constructor
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.
GrovePi constructor
public GrovePi (System.Device.I2c.I2cDevice i2cDevice, bool autoDispose = true);
public GrovePi (System.Device.I2c.I2cDevice i2cDevice, bool shouldDispose = true);
new Iot.Device.GrovePiDevice.GrovePi : System.Device.I2c.I2cDevice * bool -> Iot.Device.GrovePiDevice.GrovePi
new Iot.Device.GrovePiDevice.GrovePi : System.Device.I2c.I2cDevice * bool -> Iot.Device.GrovePiDevice.GrovePi
Public Sub New (i2cDevice As I2cDevice, Optional autoDispose As Boolean = true)
Public Sub New (i2cDevice As I2cDevice, Optional shouldDispose As Boolean = true)
Parameters
- i2cDevice
- I2cDevice
The I2C device. Device address is 0x04
- autoDisposeshouldDispose
- Boolean
True to dispose the I2C device when disposing GrovePi