public interface DLight
Modifier and Type | Method and Description |
---|---|
void |
disable()
Disables the dLight.
|
void |
disableBlinking()
Disables blinking.
|
void |
enable()
Enables the dLight.
|
void |
enableBlinking()
Enables blinking pattern.
|
void |
getColor(int[] rgb)
Returns the RGB color of the LED
Each of the color values is between 0 (fully off) and 255 (fully on).
|
int |
getExternalLED()
Gets the PWM value of the external LED driver of the dLight.
|
boolean |
isBlinkingEnabled()
Queries the blinking mode of the dLight
|
boolean |
isEnabled()
Queries the status of the dLight
|
void |
setBlinkingPattern(float seconds,
int percentageOn)
Specifies the blinking pattern of the LED.
|
void |
setColor(int[] rgb)
Changes the color of the LED according to specified RGB color.
|
void |
setColor(int red,
int green,
int blue)
Changes the color of the LED according to specified RGB color.
|
void |
setExternalLED(int value)
Sets the PWM value of the external LED driver of the dLight.
|
void |
setHSLColor(int hue,
int saturation,
int luminosity)
Changes the color of the LED according to specified HSL color.
|
void enable()
void disable()
boolean isEnabled()
void setColor(int red, int green, int blue)
red
- green
- blue
- void setColor(int[] rgb)
rgb
- Integer array containing RGB colorsvoid setHSLColor(int hue, int saturation, int luminosity)
hue
- The hue value in the range of 0-360saturation
- The saturation value in the range of 0-100luminosity
- The saturation luminosity value in the range of 0-100void setBlinkingPattern(float seconds, int percentageOn)
seconds
- The total time of a blinking cycle (in seconds)percentageOn
- The percentage of the time the LED is on within a blinking cyclevoid enableBlinking()
void disableBlinking()
boolean isBlinkingEnabled()
void getColor(int[] rgb)
rgb
- void setExternalLED(int value)
value
- The values should be between 0 (fully off) and 255 (fully on).int getExternalLED()