@hcodes/webhid-ds4
    Preparing search index...

    Stores and manages the lightbar state.

    Index
    • get blinkOff(): number | null

      Last requested dark interval in milliseconds, or null before blink configuration.

      Returns number | null

    • get blinkOn(): number | null

      Last requested bright interval in milliseconds, or null before blink configuration.

      Returns number | null

    • Configure controller-driven blinking without JavaScript timers. Finite durations are clamped to 0-2550 ms and rounded down to 10 ms units. Off defaults to on. Use stopBlink() for steady illumination. Resolves when the HID report is sent; rejects on failure or disconnect.

      Parameters

      • onMs: number
      • offMs: number = onMs

      Returns Promise<void>

    • Sets the lightbar color (HSL)

      Parameters

      • h: number

        Hue

      • s: number

        Saturation

      • l: number

        Lightness

      Returns Promise<void>

    • Sets the lightbar color (RGB)

      Parameters

      • r: number

        Red color intensity (0-255)

      • g: number

        Green color intensity (0-255)

      • b: number

        Blue color intensity (0-255)

      Returns Promise<void>