Read HiTechnic Color2 active values.
Read color number, red, green, and blue values from the HiTechnic Color2 sensor. Returns a boolean value indicating whether or not the operation completed successfully. The port must be configured as a Lowspeed port before using this function.
- Parameters
-
port | The sensor port. See Input port constants. |
ColorNum | The output color number. |
Red | The red color value. |
Green | The green color value. |
Blue | The blue color value. |
White | The white color value. |
- Returns
- The function call result.
- Examples:
- ex_ReadSensorHTColor2Active.nxc.