Documentation & example update

Make it clear that layer keys are considered modifiers by the plugin.

While in that area, use `Kaleidoscope.use` instead of the now deprecated
`USE_PLUGINS` macro.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/389/head
Gergely Nagy 7 years ago
parent 8becec569e
commit 3518ba605a

@ -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 methods ## Plugin properties
The plugin provides the `ActiveModColorEffect` object, which has the following The plugin provides the `ActiveModColorEffect` object, which has the following
property: property:

@ -40,7 +40,7 @@ const Key keymaps[][ROWS][COLS] PROGMEM = {
}; };
void setup() { void setup() {
USE_PLUGINS(&ActiveModColorEffect); Kaleidoscope.use(&ActiveModColorEffect);
Kaleidoscope.setup(); Kaleidoscope.setup();

Loading…
Cancel
Save