public static enum ColorSensor.Mode extends Enum<ColorSensor.Mode>
Enum Constant and Description |
---|
AMBIENT
Measures the level of ambient light while the sensors light is blue.
|
COLOR
Measures the color ID of a surface.
|
RED
Measures the level of reflected light from the sensors RED LED.
|
RGB
Measures the level of red, green and blue light when illuminated by a white light source.
|
Modifier and Type | Method and Description |
---|---|
static ColorSensor.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ColorSensor.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColorSensor.Mode COLOR
public static final ColorSensor.Mode RED
public static final ColorSensor.Mode RGB
public static final ColorSensor.Mode AMBIENT
public static ColorSensor.Mode[] values()
for (ColorSensor.Mode c : ColorSensor.Mode.values()) System.out.println(c);
public static ColorSensor.Mode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null