|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LampLightDetector
Interface for a light sensor that also includes a lamp (usually LED) to provide illumination.
Method Summary | |
---|---|
Colors.Color |
getFloodlight()
Returns the color of the floodlight, including Color.NONE. |
boolean |
isFloodlightOn()
Checks if the floodlight is currently on. |
void |
setFloodlight(boolean floodlight)
Turns the default LED light on or off. |
boolean |
setFloodlight(Colors.Color color)
Used to turn on or off the floodlight by color. |
Methods inherited from interface lejos.robotics.LightDetector |
---|
getHigh, getLightValue, getLow, getNormalizedLightValue |
Method Detail |
---|
void setFloodlight(boolean floodlight)
floodlight
- true to turn on lamp, false for off (ambient light only).boolean isFloodlightOn()
Colors.Color getFloodlight()
boolean setFloodlight(Colors.Color color)
color
- Use lejos.robotics.Color
enumeration constant to control lamp colors.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |