Read HiTechnic Color normalized values.
Read the color index and the normalized red, green, and blue values from the HiTechnic Color 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. |
ColorIdx | The output color index. |
Red | The normalized red color value. |
Green | The normalized green color value. |
Blue | The normalized blue color value. |
- Returns
- The function call result.
- Examples:
- ex_ReadSensorHTNormalizedColor.nxc.