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:
-
appObjectThe express application
Item Index
Methods
Methods
beforeRender
(
-
items -
callback
Manipulate the items array before render
Parameters:
-
itemsArrayAn array containing the items to be rendered
-
callbackFunctionThe callback method to execute after manipulation
-
errStringnull if no error occured, otherwise the error
-
resultObjectThe manipulated items
-
picker
(
-
data
Is called if the user has picked a color from the colourwheel
Parameters:
-
dataObjectThe data of the colourwheel
-
idStringThe id of the element
-
