LEDCommands
class LEDCommands
Helper class to use the LEDs effectively.
See also
Constructors
Types
Link copied to clipboard
class PulseLEDStart(val pulseColor: Color = Color.BLUE, val minBrightness: Int = 20, val maxBrightness: Int = 70, val periodInMs: Int = 8000) : Event
Event to be used when starting a pulsing LED state.
Link copied to clipboard
Event to use to stop a pulsing LED state.
Link copied to clipboard
Event to use to turn of ListenGlow in a parallel state.
Link copied to clipboard
Event to use to turn on ListenGlow in a parallel state.
Functions
Link copied to clipboard
fun ListenGlowState(listenLedColor: Color = Color(0,30,60), defaultLedColor: Color = Color(5,5,5)): State
The ListenGlow State should be included as a parallel state, and can then be toggled by raising the TurnOnListenGlow or TurnOffListenGlow events.
Link copied to clipboard
fun pulseLEDStart(pulseColor: Color = Color.BLUE, minBrightness: Int = 20, maxBrightness: Int = 70, periodInMs: Int = 8000): LEDCommands.PulseLEDStart
Getter function for the PulseLEDStart event.