public static interface LED.ChannelDataWriter
Modifier and Type | Method and Description |
---|---|
void |
commit()
Write the settings to the board
|
LED.ColorChannel |
getChannel()
Color the writing is setting
|
LED.ChannelDataWriter |
withFallTime(short time)
How long the transition should take from high to low state, in milliseconds
|
LED.ChannelDataWriter |
withHighIntensity(byte intensity)
Intensity value of the high state
|
LED.ChannelDataWriter |
withHighTime(short time)
How long the pulse stays in the high state
|
LED.ChannelDataWriter |
withLowIntensity(byte intensity)
Intensity value of the low state
|
LED.ChannelDataWriter |
withPulseDuration(short duration)
How long one pulse is
|
LED.ChannelDataWriter |
withPulseOffset(short offset)
How long to wait before starting the first pulse
|
LED.ChannelDataWriter |
withRepeatCount(byte count)
How many times to repeat a pulse pattern
|
LED.ChannelDataWriter |
withRiseTime(short time)
How long the transition should take from low to high state, in milliseconds
|
LED.ColorChannel getChannel()
LED.ChannelDataWriter withHighIntensity(byte intensity)
intensity
- LED intensity the high state should be in, between [0 - 31]LED.ChannelDataWriter withLowIntensity(byte intensity)
intensity
- LED intensity the low state should be in, between [0 - 31]LED.ChannelDataWriter withRiseTime(short time)
time
- Transition time (ms) from low to high stateLED.ChannelDataWriter withHighTime(short time)
time
- Length of time (ms) to spend in the high stateLED.ChannelDataWriter withFallTime(short time)
time
- Length of time (ms) from high to low stateLED.ChannelDataWriter withPulseDuration(short duration)
duration
- Length of one pulse (ms)LED.ChannelDataWriter withPulseOffset(short offset)
offset
- Wait time for first pulse (ms)LED.ChannelDataWriter withRepeatCount(byte count)
count
- Number of repetitions, set to 255 to repeat indefinitelyvoid commit()