NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
bool ReadSensorHTColor2Active ( byte  port,
byte &  ColorNum,
byte &  Red,
byte &  Green,
byte &  Blue,
byte &  White 
)
inline

Read HiTechnic Color2 active values.

Read color number, 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.

Parameters
portThe sensor port. See Input port constants.
ColorNumThe output color number.
RedThe red color value.
GreenThe green color value.
BlueThe blue color value.
WhiteThe white color value.
Returns
The function call result.
Examples:
ex_ReadSensorHTColor2Active.nxc.