public interface Led extends MetaWearBoard.Module
Modifier and Type | Interface and Description |
---|---|
static class |
Led.ColorChannel
Available colors on the LED
|
static interface |
Led.ColorChannelEditor
Interface for configuring the color channels of the LED
|
Modifier and Type | Method and Description |
---|---|
Led.ColorChannelEditor |
configureColorChannel(Led.ColorChannel channel)
Configures the pulse paramters for a color channel
|
void |
configureSecondaryMode(byte[] config)
Configure advanced LED features
|
void |
pause()
Pause the LED patterns
|
void |
play(boolean autoplay)
Play or resume patterns
|
void |
stop(boolean resetChannelAttrs)
Stop all patterns and reset the pulse time to 0
|
Led.ColorChannelEditor configureColorChannel(Led.ColorChannel channel)
channel
- Channel to modifyvoid play(boolean autoplay)
autoplay
- True if a pattern should immediately begin upon being programmedvoid pause()
void stop(boolean resetChannelAttrs)
resetChannelAttrs
- True to clear all patternsvoid configureSecondaryMode(byte[] config)
config
- Byte representation of the configuration