API Docs for: 0.0.1
Show:

RGBLights Class

RGB Lights Plugin. This plugin is able to control a strip of RGB LEDs connected to an Arduino or GPIO Pins

Constructor

RGBLights

(
  • app
)

Parameters:

  • app Object

    The express application

Item Index

Methods

beforeRender

(
  • items
  • callback
)

Manipulate the items array before render

Parameters:

  • items Array

    An array containing the items to be rendered

  • callback Function

    The callback method to execute after manipulation

    • err String

      null if no error occured, otherwise the error

    • result Object

      The manipulated items

picker

(
  • data
)

Is called if the user has picked a color from the colourwheel

Parameters:

  • data Object

    The data of the colourwheel

    • id String

      The id of the element