public interface Led extends MetaWearBoard.Module
Modifier and Type | Interface and Description |
---|---|
static class |
Led.Color
Enumeration of available colors on the LED
|
static interface |
Led.PatternEditor
Interface to edit pattern attributes
|
static class |
Led.PatternPreset
Enumeration of patterns from the blog post
|
Modifier and Type | Field and Description |
---|---|
static byte |
PATTERN_REPEAT_INDEFINITELY
Constant for PatternEditor.setRepeatCount indicating the pattern should repeat forever
|
Modifier and Type | Method and Description |
---|---|
void |
autoplay()
Play any programmed patterns and immediately plays patterns programmed later
|
Led.PatternEditor |
editPattern(Led.Color ledColor)
Edit the pattern attributes for the desired color
|
Led.PatternEditor |
editPattern(Led.Color ledColor,
Led.PatternPreset preset)
Edit the pattern attributes for the desired color using a preset pattern as the initial attribute parameters
|
void |
pause()
Pause the pattern playback
|
void |
play()
Play any programmed patterns
|
void |
stop(boolean clear)
Stop playing LED patterns
|
static final byte PATTERN_REPEAT_INDEFINITELY
Led.PatternEditor editPattern(Led.Color ledColor)
ledColor
- Color to configureLed.PatternEditor editPattern(Led.Color ledColor, Led.PatternPreset preset)
ledColor
- Color to configurepreset
- Pattern preset to usevoid autoplay()
void play()
void pause()
void stop(boolean clear)
clear
- True if the patterns should be cleared as well