public interface LED extends MetaWearController.ModuleController
Module.LED
Modifier and Type | Interface and Description |
---|---|
static class |
LED.Callbacks
Callbacks for the IBeacon module
|
static interface |
LED.ChannelData
Wrapper class combining all the data describing an LED channel
|
static interface |
LED.ChannelDataWriter
Helper class to facilitate writing pulse information to a color channel
|
static class |
LED.ColorChannel
Colors that can be controlled
|
static class |
LED.Register
Enumeration of registers under the LED module
|
static class |
LED.State
States the LED can be in
|
Modifier and Type | Method and Description |
---|---|
void |
pause()
Pause a pattern
|
void |
play(boolean autoplay)
Play or resume a pulse pattern
|
LED.ChannelDataWriter |
setColorChannel(LED.ColorChannel color)
Sets the color channel to read to and write from
|
void |
stop(boolean resetChannels)
Stop a pulse pattern and reset pulse time to 0
|
void play(boolean autoplay)
autoplay
- Set to true if a pattern should be immediately started upon writingvoid pause()
void stop(boolean resetChannels)
resetChannels
- True if the channel states should be reset as wellLED.ChannelDataWriter setColorChannel(LED.ColorChannel color)
color
- Color channel to interact with