@ginden/blinkstick-v2 - v3.4.1
    Preparing search index...

    Class Led

    Class to control a single LED on a Blinkstick device.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    blinkstick: BlinkstickAny

    Reference to the Blinkstick device that this LED belongs to.

    index: number

    Index of the LED on the Blinkstick device.

    Methods

    • Parameters

      • red: number
      • green: number
      • blue: number

      Returns Promise<void>

    • Turns of the LED by setting its color to black (0, 0, 0).

      Returns Promise<void>