public interface LEDDeviceSpec extends DeviceSpec
Modifier and Type | Field and Description |
---|---|
static byte |
BLUE |
static byte |
GREEN |
static byte |
RED |
static byte |
WHITE |
static byte |
YELLOW |
Modifier and Type | Method and Description |
---|---|
boolean |
canQuickBlink(int logicalID)
Whether to support quick blink.
|
boolean |
canSlowBlink(int logicalID)
Whether to support slow blink.
|
byte[] |
getColors(int logicalID)
Gets the color of the LED.
|
int |
getCounts()
Gets the counts of LED.
|
static final byte RED
static final byte YELLOW
static final byte GREEN
static final byte BLUE
static final byte WHITE
int getCounts()
byte[] getColors(int logicalID)
logicalID
- The logical id of the LED.boolean canQuickBlink(int logicalID)
Every 500ms blink again.
logicalID
- The logical id of the LED.true
support. false
not support,return false if parameter is wrong.boolean canSlowBlink(int logicalID)
Every 1s blink again.
logicalID
- The logical id of the LED.true
Supported. false
Not supported,return false if parameter is wrong.