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
ObjectThe express application
Item Index
Methods
Methods
beforeRender
(
-
items
-
callback
Manipulate the items array before render
Parameters:
-
items
ArrayAn array containing the items to be rendered
-
callback
FunctionThe callback method to execute after manipulation
-
err
Stringnull if no error occured, otherwise the error
-
result
ObjectThe manipulated items
-
picker
(
-
data
Is called if the user has picked a color from the colourwheel
Parameters:
-
data
ObjectThe data of the colourwheel
-
id
StringThe id of the element
-