|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecticommand.nxt.I2CSensor
icommand.nxt.ColorSensor
public class ColorSensor
HiTechnic color sensor.
www.hitechnic.com
| Field Summary |
|---|
| Fields inherited from class icommand.nxt.I2CSensor |
|---|
DEFAULT_ADDRESS, PRODUCT_ID, SENSOR_TYPE, STOP, VERSION |
| Constructor Summary | |
|---|---|
ColorSensor(SensorPort s)
Creates an instance of the ColorSensor |
|
| Method Summary | |
|---|---|
int |
getBlue()
Returns the blue saturation of the color. |
int |
getColorNumber()
Returns the color index detected by the sensor. |
int |
getGreen()
Returns the green saturation of the color. |
int |
getRed()
Returns the red saturation of the color. |
| Methods inherited from class icommand.nxt.I2CSensor |
|---|
fetchString, getData, getData, getId, getProductID, getSensorType, getVersion, sendData, sendData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColorSensor(SensorPort s)
s - | Method Detail |
|---|
public int getColorNumber()
public int getRed()
public int getGreen()
public int getBlue()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||