Gergely Nagy
23368b2161
|
8 years ago | |
---|---|---|
examples/LED-ActiveModColor | 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-ActiveModColor
With this plugin, any active modifier on the keyboard will have the LED under it highlighted. No matter how the modifier got activated (a key press, a macro, anything else), the coloring will apply.
Using the plugin
To use the plugin, one needs to include the header, and activate the effect. It is also possible to use a custom color instead of the white default.
#include <Akela-LED-ActiveModColor.h>
void setup () {
Keyboardio.setup (KEYMAP_SIZE);
Keyboardio.use (&ActiveModColorEffect, NULL);
ActiveModColorEffect.configure ({0x00, 0xff, 0xff});
}
It is recommended to place the activation (the Keyboardio.use
call) of the
plugin last, so that it can reliably override any other plugins that may work
with the LEDs, and apply the highlight over those.
Plugin methods
The plugin provides the ActiveModColorEffect
object, which has the following
method:
.configure(color)
Set the color to use for highlighting the modifiers. If unset, will use the default white color.
Further reading
Starting from the example is the recommended way of getting started with the plugin.