Awesome
Kaleidoscope-LEDEffect-DigitalRain
An LED effect similar to the "digital rain" seen in the "Matrix" films with green lights flowing downwards on the keyboard.
Installation
The plugin is installed in the same way as other third-party Kaleidoscope plugins. See this third-party plugin installation guide.
Using the extension
To use the plugin, include the header, and tell the firmware to use it:
#include <Kaleidoscope-LEDEffect-DigitalRain.h>
KALEIDOSCOPE_INIT_PLUGINS(
LEDDigitalRainEffect
);
void setup() {
Kaleidoscope.setup();
// Optionally adjust the configuration
LEDDigitalRainEffect.DROP_MS = 140; // Make the rain fall faster
LEDDigitalRainEffect.activate();
}
Plugin methods
The plugin provides the LEDDigitalRainEffect
object, which has no public methods,
outside of those provided by all LED modes.
Configuration
A few properties are exposed for configuration. For their full documentation, see the header file, and for the defaults, see the implementation file.
LEDDigitalRainEffect.DECAY_MS
: number of milliseconds it takes for a raindrop to decay from full intensityLEDDigitalRainEffect.DROP_MS
: number of milliseconds before digital raindrops fall one rowLEDDigitalRainEffect.NEW_DROP_PROBABILITY
: inverse probability of a new raindrop appearing at the top of each column, each time drops fallLEDDigitalRainEffect.PURE_GREEN_INTENSITY
: this allows the time ratio of tints vs shades of green to be controlledLEDDigitalRainEffect.MAXIMUM_BRIGHTNESS_BOOST
: the maximum lightness of a pixel, above pure greenLEDDigitalRainEffect.COLOR_CHANNEL
: colour channel to use, allowing green to be overridden with red or blue