Edit

Share via


GrovePi(I2cDevice, Boolean) Constructor

Definition

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

Applies to