Class TCS3472
Provides functionality for TCS3472 Color Light-to-Digital Converter with IR Filter
Inheritance
System.Object
TCS3472
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: ElatecFCT.dll
Syntax
Constructors
View Source
TCS3472(II2c)
Initializes a new instance of the ElatecFCT.Hardware.TCS3472 using a i2c interface
Declaration
public TCS3472(II2c interfaceI2C)
Parameters
Type |
Name |
Description |
II2c |
interfaceI2C |
|
Fields
View Source
Adress
Declaration
public static byte Adress
Field Value
Type |
Description |
System.Byte |
|
View Source
COMMAND_BIT
Declaration
public const byte COMMAND_BIT = 128
Field Value
Type |
Description |
System.Byte |
|
View Source
ENABLE_AEN
Declaration
public const byte ENABLE_AEN = 2
Field Value
Type |
Description |
System.Byte |
|
View Source
ENABLE_AIEN
Declaration
public const byte ENABLE_AIEN = 16
Field Value
Type |
Description |
System.Byte |
|
View Source
ENABLE_PON
Declaration
public const byte ENABLE_PON = 1
Field Value
Type |
Description |
System.Byte |
|
View Source
ENABLE_WEN
Declaration
public const byte ENABLE_WEN = 8
Field Value
Type |
Description |
System.Byte |
|
View Source
GAIN_16X
Declaration
public const byte GAIN_16X = 16
Field Value
Type |
Description |
System.Byte |
|
View Source
GAIN_1X
Declaration
public const byte GAIN_1X = 0
Field Value
Type |
Description |
System.Byte |
|
View Source
GAIN_4X
Declaration
public const byte GAIN_4X = 1
Field Value
Type |
Description |
System.Byte |
|
View Source
GAIN_60X
Declaration
public const byte GAIN_60X = 17
Field Value
Type |
Description |
System.Byte |
|
View Source
ID
Declaration
public const byte ID = 68
Field Value
Type |
Description |
System.Byte |
|
View Source
INTEGRATIONTIME_100MS
Declaration
public const byte INTEGRATIONTIME_100MS = 213
Field Value
Type |
Description |
System.Byte |
|
View Source
INTEGRATIONTIME_2_4MS
Declaration
public const byte INTEGRATIONTIME_2_4MS = 255
Field Value
Type |
Description |
System.Byte |
|
View Source
INTEGRATIONTIME_24MS
Declaration
public const byte INTEGRATIONTIME_24MS = 246
Field Value
Type |
Description |
System.Byte |
|
View Source
INTEGRATIONTIME_50MS
Declaration
public const byte INTEGRATIONTIME_50MS = 235
Field Value
Type |
Description |
System.Byte |
|
View Source
INTEGRATIONTIME_700MS
Declaration
public const byte INTEGRATIONTIME_700MS = 0
Field Value
Type |
Description |
System.Byte |
|
Methods
View Source
GetColor(Int32)
Get color intensity from the color value register.
Note: Wait till the conversion is done after init according to the integration time
Declaration
public int GetColor(int waveLenght)
Parameters
Type |
Name |
Description |
System.Int32 |
waveLenght |
The color to check
|
Returns
Type |
Description |
System.Int32 |
Intensity of the color
|
View Source
Init()
Init the color sensor default: 50 ms, gain 4x
Declaration
View Source
Init(Byte, Byte)
Declaration
public void Init(byte integrationTime, byte gain)
Parameters
Type |
Name |
Description |
System.Byte |
integrationTime |
|
System.Byte |
gain |
|