- Sets a single color for the whole string
colorargument must be a number
- Sets a color for a single LED of the specified index
indexargument must be a number and must be within the range of the led array in your Arduino sketchcolorargument must be a number- Will throw a Lua error if the index is out of bounds
- Sets an HSV value for the whole string
hue,saturation, andvaluearguments all must be a number from 0 to 255
- Sets an HSV value on the specified LED
indexargument must be a number and must be within the range of the led array in your Arduino sketchhue,saturation, andvaluearguments all must be a number from 0 to 255- Will throw a Lua error if the index is out of bounds
- Used to apply colors changed with the
SetColor()andSetColorHSV()functions - Should only be called once per frame
- Does not need to be used with
SetSolidColor()
- Functions exactly the same as the Arduino function of the same name
msargument must be a number, in milliseconds
- Functions exactly the same as the Arduino function of the same name
- Returns a color based on a given temperature value
tempargument must be a number from 1 to 255- 1 is the coldest (dark red), and 255 is the hottest (white)
- 0 is also valid and returns black
- Gradually fades LEDs to black by reducing their brightness by the specified amount
brightnessargument must be a number from 0 to 255- 0 doesn't reduce the brightness at all, at 255 reduces the brightness of an LED in a single frame
- Sets the brightness for the whole string
- Will not take effect until the next
SetSolidColor()orPushColors()call brightnessargument must be a whole number from 0 to 255- 0 is the darkest (black) and 255 is the brightest
- Fades a color to another color by a set amount
- Will not take effect until
PushColors()is called indexargument must be a number and must be within the range of the led array in your Arduino sketchcolor1andcolor2arguments are the two colors to blend together; they must be a number- If
color1argument is negative, it will take the color from the server's led array at the specified index fracargument is the fraction of the blend to use; must be a number between 0 and 255
- Functions exactly the same as the beat8 FastLED function
- Functions exactly the same as the beatsin8 FastLED function
- Stops the execution of a looped script