NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
bool ColorBoolean ( byte  port,
byte  color 
)
inline

Read a LEGO color sensor boolean value.

This function lets you directly access a specific LEGO color sensor boolean value. Both the port and the color index must be constants.

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