NXC
Version 1.2.1 r5
|
|
inline |
Read LEGO color sensor extra.
This function lets you read the LEGO color sensor. It returns the color value, and three arrays containing raw, normalized, and scaled color values for red, green, blue, and none indices.
port | The sensor port. See Input port constants. |
colorval | The color value. See Color values. |
raw | An array containing four raw color values. See Color sensor array indices. |
norm | An array containing four normalized color values. See Color sensor array indices. |
scaled | An array containing four scaled color values. See Color sensor array indices. |