Gergely Nagy
c458408356
|
8 years ago | |
---|---|---|
src | 8 years ago | |
.gitignore | 8 years ago | |
COPYING | 8 years ago | |
README.md | 8 years ago | |
library.properties | 8 years ago |
README.md
Akela-LED-Stalker
The StalkerEffect
plugin provides an interesting new typing experience: the
LEDs light up as you tap keys, and play one of the selected effects: a haunting
trail of ghostly white lights, or a blazing trail of fire.
Using the plugin
To use the plugin, one needs to include the header, and select the effect.
#include <Akela-LED-Stalker.h>
void setup () {
Keyboardio.setup (KEYMAP_SIZE);
StalkerEffect.configure (STALKER (Haunt, {0xff, 0, 0}));
Keyboardio.use (&StalkerEffect, NULL);
}
It is recommended to place the activation of the plugin (the Keyboardio.use
call) as early as possible, so the plugin can catch all relevant key presses.
The configuration can happen at any time, but using the STALKER
macro is
highly recommended.
Plugin methods
The plugin provides the StalkerEffect
object, which has the following
method:
.configure(effect)
Set the effect to use with the plugin. See below for a list.
It is recommended to use the
STALKER
macro to declare the effect itself.
Plugin helpers
STALKER(effect, params...)
Returns an effect, to be used by the
.configure
method of theStalkerEffect
object. Any arguments given to the macro, are also passed on to the effect. If the effect takes no arguments, useNULL
.
Plugin effects
The plugin provides the following effects:
Haunt([color])
A ghostly haunt effect, that trails the key taps with a ghostly white color (or any other color, if specified).
BlazingTrail()
A blazing trail of fire will follow our fingers!