tjbot-ce - v3.0.0
    Preparing search index...

    Class LEDNeopixelSPI

    LED controller for SPI-based NeoPixel LEDs (Raspberry Pi 5) This is based on pi5neo.py: https://github.com/vanshksingh/Pi5Neo/blob/main/pi5neo/pi5neo.py

    Index

    Constructors

    Properties

    spi: SPI
    useGRBFormat: boolean

    Methods

    • Render the LED to a specified color.

      Parameters

      • color: string

        The color to render, specified as a string of hexadecimal digits with no leading '0x' or '#' in RRGGBB format.

      Returns Promise<void>

      A promise that resolves when the SPI transfer completes.

    • Parameters

      • red: number
      • green: number
      • blue: number
      • useGRB: boolean

      Returns Buffer