NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
bool ReadSensorHTNormalizedColor2Active ( const byte  port,
byte &  ColorIdx,
byte &  Red,
byte &  Green,
byte &  Blue 

Read HiTechnic Color2 normalized active values.

Read the color index and the normalized red, green, and blue values from the HiTechnic Color2 sensor. Returns a boolean value indicating whether or not the operation completed successfully. The port must be configured as a Lowspeed port before using this function.

portThe sensor port. See Input port constants.
ColorIdxThe output color index.
RedThe normalized red color value.
GreenThe normalized green color value.
BlueThe normalized blue color value.
The function call result.