NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
bool ReadSensorHTRawColor2 ( const byte  port,
unsigned int &  Red,
unsigned int &  Green,
unsigned int &  Blue,
unsigned int &  White 

Read HiTechnic Color2 raw values.

Read the raw 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.
RedThe raw red color value.
GreenThe raw green color value.
BlueThe raw blue color value.
WhiteThe raw white color value.
The function call result.