public interface LEDDeviceSpec extends DeviceSpec
LEDDeviceSpec interface defines the specifications for an LED device.
This interface extends the DeviceSpec and provides additional functionalities
specific to LED devices, including retrieving LED counts, colors, and blink capabilities.| 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)
Determines whether quick blinking is supported for a specific LED.
|
boolean |
canSlowBlink(int logicalID)
Determines whether slow blinking is supported for a specific LED.
|
byte[] |
getColors(int logicalID)
Gets the color(s) of the specified LED.
|
int |
getCounts()
Retrieves the number of LEDs available.
|
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)
logicalID - The logical ID of the LED.true if quick blinking is supported, false otherwise. Returns false if the parameter is incorrect.boolean canSlowBlink(int logicalID)
logicalID - The logical ID of the LED.true if slow blinking is supported, false otherwise. Returns false if the parameter is incorrect.