NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
int SensorHTColorNum ( const byte &  port)
inline

Read HiTechnic color sensor color number.

Read the color number from the HiTechnic Color sensor on the specified port. The port must be configured as a Lowspeed port before using this function.

Parameters
portThe sensor port. See Input port constants.
Returns
The color number.
Examples:
ex_SensorHTColorNum.nxc.