|
|
@ -41,16 +41,17 @@ void setup() {
|
|
|
|
The plugin provides two objects: `LEDRainbowEffect`, and `LEDRainbowWaveEffect`,
|
|
|
|
The plugin provides two objects: `LEDRainbowEffect`, and `LEDRainbowWaveEffect`,
|
|
|
|
both of which provide the following methods:
|
|
|
|
both of which provide the following methods:
|
|
|
|
|
|
|
|
|
|
|
|
### `.brightness(brightness)`
|
|
|
|
### `.brightness([brightness])`
|
|
|
|
|
|
|
|
|
|
|
|
> Sets the LED brightness for the effect.
|
|
|
|
> Sets (or gets, if called without an argument) the LED brightness for the
|
|
|
|
|
|
|
|
> effect.
|
|
|
|
>
|
|
|
|
>
|
|
|
|
> Defaults to 50.
|
|
|
|
> Defaults to 50.
|
|
|
|
|
|
|
|
|
|
|
|
### `.update_delay(delay)`
|
|
|
|
### `.update_delay([delay])`
|
|
|
|
|
|
|
|
|
|
|
|
> Sets the number of miliseconds between effect updates. Smaller number results
|
|
|
|
> Sets (or gets, if called without an argument) the number of milliseconds
|
|
|
|
> in faster rainbows.
|
|
|
|
> between effect updates. Smaller number results in faster rainbows.
|
|
|
|
>
|
|
|
|
>
|
|
|
|
> Defaults to 40.
|
|
|
|
> Defaults to 40.
|
|
|
|
|
|
|
|
|
|
|
|