Edit

Share via


Tcs3472x(I2cDevice, Double, Gain, Boolean) Constructor

Definition

Create a TCS4272x sensor

public Tcs3472x (System.Device.I2c.I2cDevice i2cDevice, double integrationTime = 0.0024, Iot.Device.Tcs3472x.Gain gain = Iot.Device.Tcs3472x.Gain.Gain16X, bool autoDisposable = true);
public Tcs3472x (System.Device.I2c.I2cDevice i2cDevice, double integrationTime = 0.0024, Iot.Device.Tcs3472x.Gain gain = Iot.Device.Tcs3472x.Gain.Gain16X, bool shouldDispose = true);
new Iot.Device.Tcs3472x.Tcs3472x : System.Device.I2c.I2cDevice * double * Iot.Device.Tcs3472x.Gain * bool -> Iot.Device.Tcs3472x.Tcs3472x
new Iot.Device.Tcs3472x.Tcs3472x : System.Device.I2c.I2cDevice * double * Iot.Device.Tcs3472x.Gain * bool -> Iot.Device.Tcs3472x.Tcs3472x
Public Sub New (i2cDevice As I2cDevice, Optional integrationTime As Double = 0.0024, Optional gain As Gain = Iot.Device.Tcs3472x.Gain.Gain16X, Optional autoDisposable As Boolean = true)
Public Sub New (i2cDevice As I2cDevice, Optional integrationTime As Double = 0.0024, Optional gain As Gain = Iot.Device.Tcs3472x.Gain.Gain16X, Optional shouldDispose As Boolean = true)

Parameters

i2cDevice
I2cDevice

The I2C Device class

integrationTime
Double

The time to wait for sensor to read the data, minimum is 0.024 seconds, maximum in the constructor is 0.7 seconds

gain
Gain

The gain when integrating the color measurement

autoDisposableshouldDispose
Boolean

true to dispose the I2C Device class at dispose

Applies to