|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IBUG20BaseControl
Provides control of BUGbase 20 LEDs.
| Field Summary | |
|---|---|
static int |
COLOR_BLUE
|
static int |
COLOR_GREEN
|
static int |
COLOR_RED
|
static int |
LED_BATTERY
|
static int |
LED_BLUETOOTH
|
static int |
LED_POWER
|
static int |
LED_WLAN
|
| Method Summary | |
|---|---|
int |
getLEDBrightness(int led,
int color)
|
java.util.List |
getLEDDevices()
|
java.lang.String |
getLEDTrigger(int led,
int color)
|
java.lang.String[] |
getLEDTriggers(int led,
int color)
|
void |
setLEDBrightness(int led,
int brightness)
Set brightness level for PWM-controlled LED. |
void |
setLEDColor(int led,
int color,
boolean on)
Turn on or off a specific color on a multi color LED. |
void |
setLEDTrigger(int led,
int color,
java.lang.String trigger)
Set the trigger for a given LED and Color |
| Field Detail |
|---|
static final int COLOR_BLUE
static final int COLOR_RED
static final int COLOR_GREEN
static final int LED_BATTERY
static final int LED_POWER
static final int LED_WLAN
static final int LED_BLUETOOTH
| Method Detail |
|---|
void setLEDColor(int led,
int color,
boolean on)
throws java.io.IOException
led - IBUGBaseControl.LED_*color - IBUGBaseControl.COLOR_*on - TRUE if LED is to be on, false otherwise.
java.io.IOException - is thrown if invalid LED or color value is passed
int getLEDBrightness(int led,
int color)
throws java.io.IOException
led - color -
java.io.IOException
void setLEDTrigger(int led,
int color,
java.lang.String trigger)
throws java.io.IOException
led - color - trigger -
java.io.IOException
java.lang.String getLEDTrigger(int led,
int color)
throws java.io.IOException
led - color -
java.io.IOException
java.lang.String[] getLEDTriggers(int led,
int color)
throws java.io.IOException
led - color -
java.io.IOException
void setLEDBrightness(int led,
int brightness)
throws java.io.IOException
led - IBUGBaseControl.LED_*brightness - 0 - 255
java.io.IOException - is thrown if invalid LED value is passed.java.util.List getLEDDevices()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||