public class LedManager
extends java.lang.Object
| Constructor and Description |
|---|
LedManager()
This is the constructor of LedManager.
|
| Modifier and Type | Method and Description |
|---|---|
int |
blinkLed(Led id,
int count,
int onMS,
int offMS)
Blinking led method.
|
int |
blinkLed(Led id,
int ARGB,
int count,
int onMS,
int offMS)
Blinking led method.
|
int |
setLed(Led id,
boolean enable)
Setting led method.
|
int |
setLed(Led id,
boolean enable,
int ARGB)
Setting led method.
|
public LedManager()
DeviceException - in case of error.public int blinkLed(Led id, int ARGB, int count, int onMS, int offMS)
id - Specifies which Led to control.ARGB - int value that specifies the led color in RGB 24 bits format, following the standard components defined in
android.graphics.Color.count - int value that specifies how many on/off cycles should be performed before
the LED is turned off. If set to zero, then the LED is turned
off immediately. If set to -1, the LED is cycled until it is
explicitly turned off.onMS - int value that specifies how long (in ms) during an on/off cycle the LED
should be turned on. If set to zero, the LED is simply turned
off.offMS - int range that specifies how long (in ms) during an on/off cycle the LED
should be turned off. If set to zero, the LED remains on until
all cycles are complete.int DeviceException.SUCCESS in case of success,
otherwise a possible error code, matching one of the DeviceException error constants.DeviceException - in case of error, when exceptions are enabled through the ErrorManager singleton.public int blinkLed(Led id, int count, int onMS, int offMS)
id - Specifies which Led to control.count - int value that specifies how many on/off cycles should be performed before
the LED is turned off. If set to zero, then the LED is turned
off immediately. If set to -1, the LED is cycled until it is
explicitly turned off.onMS - int value that specifies how long (in ms) during an on/off cycle the LED
should be turned on. If set to zero, the LED is simply turned
off.offMS - int range that specifies how long (in ms) during an on/off cycle the LED
should be turned off. If set to zero, the LED remains on until
all cycles are complete.int DeviceException.SUCCESS in case of success,
otherwise a possible error code, matching one of the DeviceException error constants.DeviceException - in case of error, when exceptions are enabled through the ErrorManager singleton.public int setLed(Led id, boolean enable, int ARGB)
id - Specifies which Led to control.enable - boolean value set to true to enable the LED, while set to false to disable
the LED.ARGB - int value that specifies the led color in RGB 24 bits format, following the standard components defined in
android.graphics.Color.int DeviceException.SUCCESS in case of success,
otherwise a possible error code, matching one of the DeviceException error constants.DeviceException - in case of error, when exceptions are enabled through the ErrorManager singleton.public int setLed(Led id, boolean enable)
id - Specifies which Led to control.enable - A boolean value set to true that enables the LED and a value of false that disables
the LED.int DeviceException.SUCCESS in case of success,
otherwise a possible error code, matching one of the DeviceException error constants.DeviceException - in case of error, when exceptions are enabled through the ErrorManager singleton.