@ -11,7 +11,9 @@
With this plugin, any active modifier on the keyboard will have the LED under it
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,
highlighted. No matter how the modifier got activated (a key press, a macro,
anything else), the coloring will apply.
anything else), the coloring will apply. Layer keys, be them layer toggles,
momentary switches, or one-shot layer keys count as modifiers as far as the
plugin is concerned.
## Using the plugin
## Using the plugin
@ -23,7 +25,7 @@ is also possible to use a custom color instead of the white default.
#include < Kaleidoscope-LED-ActiveModColor.h >
#include < Kaleidoscope-LED-ActiveModColor.h >
void setup () {
void setup () {
USE_PLUGINS (&ActiveModColorEffect);
Kaleidoscope.use (&ActiveModColorEffect);
Kaleidoscope.setup ();
Kaleidoscope.setup ();
@ -31,11 +33,11 @@ void setup () {
}
}
```
```
It is recommended to place the activation (the ` USE_PLUGINS` call) of the plugin
It is recommended to place the activation (the ` Kaleidoscope.use` call) of the
last, so that it can reliably override any other plugins that may work with the
plugin last, so that it can reliably override any other plugins that may work
LEDs, and apply the highlight over those.
with the LEDs, and apply the highlight over those.
## Plugin method s
## Plugin propertie s
The plugin provides the `ActiveModColorEffect` object, which has the following
The plugin provides the `ActiveModColorEffect` object, which has the following
property:
property: