NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
int ReadSensorColorRaw ( const byte &  port,
unsigned int &  rawVals[] 
)
inline

Read LEGO color sensor raw values.

This function lets you read the LEGO color sensor. It returns an array containing raw color values for red, green, blue, and none indices.

Parameters
portThe sensor port. See Input port constants.
rawValsAn array containing four raw color values. See Color sensor array indices.
Returns
The function call result.
Warning
This function requires an NXT 2.0 compatible firmware.
Examples:
ex_ReadSensorColorRaw.nxc.