public interface ColorSensor extends HardwareDevice
HardwareDevice.Manufacturer
Modifier and Type | Method and Description |
---|---|
int |
alpha()
Get the amount of light detected by the sensor as an int.
|
int |
argb()
Get the "hue"
|
int |
blue()
Get the Blue values detected by the sensor as an int.
|
void |
enableLed(boolean enable)
Enable the LED light
|
I2cAddr |
getI2cAddress()
Get the current I2C Address of this object.
|
int |
green()
Get the Green values detected by the sensor as an int.
|
int |
red()
Get the Red values detected by the sensor as an int.
|
void |
setI2cAddress(I2cAddr newAddress)
Set the I2C address to a new value.
|
close, getConnectionInfo, getDeviceName, getManufacturer, getVersion, resetDeviceConfigurationForOpMode
int red()
int green()
int blue()
int alpha()
int argb()
void enableLed(boolean enable)
enable
- true to enable; false to disablevoid setI2cAddress(I2cAddr newAddress)
I2cAddr getI2cAddress()