public abstract class ColorSensor extends java.lang.Object implements HardwareDevice
| Constructor and Description |
|---|
ColorSensor() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
alpha()
Get the amount of light detected by the sensor as an int.
|
abstract int |
argb()
Get the "hue"
|
abstract int |
blue()
Get the Blue values detected by the sensor as an int.
|
abstract void |
enableLed(boolean enable)
Enable the LED light
|
abstract int |
getI2cAddress()
Get the current I2C Address of this object.
|
abstract int |
green()
Get the Green values detected by the sensor as an int.
|
abstract int |
red()
Get the Red values detected by the sensor as an int.
|
abstract void |
setI2cAddress(int newAddress)
Set the I2C address to a new value.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, getConnectionInfo, getDeviceName, getVersionpublic abstract int red()
public abstract int green()
public abstract int blue()
public abstract int alpha()
public abstract int argb()
public abstract void enableLed(boolean enable)
enable - true to enable; false to disablepublic abstract void setI2cAddress(int newAddress)
public abstract int getI2cAddress()
public java.lang.String toString()
toString in class java.lang.Object