interface ILed {
    close(): Promise<void>;
    isOpen(): boolean;
    open(): Promise<void>;
    setColor(color: Color, mode?: LedMode): Promise<void>;
}

Hierarchy (View Summary)

Methods

  • Release control of the LED. Any configurations of color will be reset.

    Returns Promise<void>

  • Determines whether it is currently open.

    Returns boolean

  • Opens the LED for control. Any color previously set on the LED by other functionality may be cleared.

    Returns Promise<void>

  • Set the color and mode of the LED. If mode is not specified, the default mode is LedMode.on.

    Parameters

    Returns Promise<void>