Tcs3472x Class
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.
Tcs3472x - color sensor
public class Tcs3472x : IDisposable
[System.Device.Model.Interface("Tcs3472x - color sensor")]
public class Tcs3472x : IDisposable
type Tcs3472x = class
interface IDisposable
[<System.Device.Model.Interface("Tcs3472x - color sensor")>]
type Tcs3472x = class
interface IDisposable
Public Class Tcs3472x
Implements IDisposable
- Inheritance
-
Tcs3472x
- Attributes
- Implements
Constructors
Tcs3472x(I2cDevice, Double, Gain, Boolean) |
Create a TCS4272x sensor |
Fields
DefaultI2cAddress |
Default I2C address for TCS3472x familly |
Properties
ChipId |
Get the type of sensor |
Color |
Get the color |
Gain |
Set/Get the gain |
IntegrationTime |
Set/Get the time to wait for the sensor to read the data Minimum time is 0.0024 s Maximum time is 7.4 s Be aware that it is not a linear function |
IsClearInterrupt |
Get true if RGBC is clear channel interrupt |
IsValidData |
Get true is there are valid data |
Methods
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
GetColor(Boolean) |
Get the color |
SetInterrupt(Boolean) |
Set/Clear the colors and clear interrupts |
SetInterrupt(InterruptState, Boolean) |
Set/clear a specific interrupt persistence This is used to have more than 1 cycle before generating an interruption. |
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