Hierarchy

  • SmartLed

Constructors

Methods

Constructors

  • Create a new Smart LED strip.

    Parameters

    • pin: number

      The pin the strip is connected to.

    • count: number

      The number of LEDs in the strip.

    • Optional type: LedType

      The type of LED strip.

    Returns SmartLed

Methods

  • Get the color of the given LED.

    Parameters

    • index: number

      The index of the LED to get.

    Returns Rgb

    The color of the LED.

  • Set the color of the given LED.

    Parameters

    • index: number

      The index of the LED to set.

    • rgb: Rgb

      The color to set the LED to.

    Returns void

  • Show the current buffer on the strip.

    Returns void

Generated using TypeDoc