UPM

The UPM API is a high level sensor library for IoT devices using MRAA. See examples here. Back to index page.
SparkFun sensor images provided under CC BY-NC-SA-3.0.

LPD8806 Class

Module: lpd8806

FastPixel* LPD8806 is an RGB LED strip controller.
lpd8806.jpg

Methods

LPD8806

(
  • bus
  • csn
  • pixelCount
)
Number

Instantiates an LPD8806 object

Parameters:

  • bus Number

    SPI bus to use

  • csn Number

    Chip select pin

  • pixelCount Number

    Number of pixels in the strip

Returns:

Number:

setPixelColor

(
  • pixelOffset
  • r
  • g
  • b
)

Parameters:

  • pixelOffset Number

    Pixel offset in the strip of the pixel

  • r Number

    Red LED

  • g Number

    Green LED

  • b Number

    Blue LED

show

()

Writes the data stored in the array of pixels to the chip

getStripLength

() Number

Returns the length of the LED strip

Returns:

Number:

name

() String

Returns the name of the component

Returns:

String: