NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
long ColorCalibration ( byte  port,
byte  point,
byte  color 
)
inline

Read a LEGO color sensor calibration point value.

This function lets you directly access a specific LEGO color calibration point value. The port, point, and color index must be constants.

Parameters
portThe sensor port. See Input port constants.
pointThe calibration point. See Color calibration constants.
colorThe color index. See Color sensor array indices.
Returns
The calibration point value.
Warning
This function requires an NXT 2.0 compatible firmware.
Examples:
ex_ColorCalibration.nxc.