Tcs3472x(I2cDevice, Double, Gain, 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.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for