Class Neopixel

Hierarchy

  • Neopixel

Constructors

Methods

Constructors

  • Create a new Neopixel strip.

    Parameters

    • pin: number

      The pin the strip is connected to.

    • count: number

      The number of LEDs in the strip.

    Returns Neopixel

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