NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
char SetHTColor2Mode ( const byte &  port,
byte  mode 
)
inline

Set HiTechnic Color2 mode.

Set the mode of the HiTechnic Color2 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.
modeThe Color2 mode. See HiTechnic Color2 constants.
Returns
The function call result. NO_ERR or Communications specific errors.
Examples:
ex_sethtcolor2mode.nxc.