|
|
|
@ -5,9 +5,9 @@
|
|
|
|
|
[travis:image]: https://travis-ci.org/keyboardio/Kaleidoscope-LED-ActiveModColor.svg?branch=master
|
|
|
|
|
[travis:status]: https://travis-ci.org/keyboardio/Kaleidoscope-LED-ActiveModColor
|
|
|
|
|
|
|
|
|
|
[st:stable]: https://img.shields.io/badge/stable-✔-black.png?style=flat&colorA=44cc11&colorB=494e52
|
|
|
|
|
[st:broken]: https://img.shields.io/badge/broken-X-black.png?style=flat&colorA=e05d44&colorB=494e52
|
|
|
|
|
[st:experimental]: https://img.shields.io/badge/experimental----black.png?style=flat&colorA=dfb317&colorB=494e52
|
|
|
|
|
[st:stable]: https://img.shields.io/badge/stable-✔-black.svg?style=flat&colorA=44cc11&colorB=494e52
|
|
|
|
|
[st:broken]: https://img.shields.io/badge/broken-X-black.svg?style=flat&colorA=e05d44&colorB=494e52
|
|
|
|
|
[st:experimental]: https://img.shields.io/badge/experimental----black.svg?style=flat&colorA=dfb317&colorB=494e52
|
|
|
|
|
|
|
|
|
|
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,
|
|
|
|
@ -23,27 +23,28 @@ is also possible to use a custom color instead of the white default.
|
|
|
|
|
#include <Kaleidoscope-LED-ActiveModColor.h>
|
|
|
|
|
|
|
|
|
|
void setup () {
|
|
|
|
|
Kaleidoscope.setup (KEYMAP_SIZE);
|
|
|
|
|
USE_PLUGINS(&ActiveModColorEffect);
|
|
|
|
|
|
|
|
|
|
Kaleidoscope.use (&ActiveModColorEffect, NULL);
|
|
|
|
|
Kaleidoscope.setup ();
|
|
|
|
|
|
|
|
|
|
ActiveModColorEffect.configure ({0x00, 0xff, 0xff});
|
|
|
|
|
ActiveModColorEffect.highlight_color = CRGB(0x00, 0xff, 0xff);
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
It is recommended to place the activation (the `Kaleidoscope.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.
|
|
|
|
|
It is recommended to place the activation (the `USE_PLUGINS` 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)`
|
|
|
|
|
### `.highlight_color`
|
|
|
|
|
|
|
|
|
|
> Set the color to use for highlighting the modifiers. If unset, will use the
|
|
|
|
|
> default white color.
|
|
|
|
|
> The color to use for highlighting the modifiers. Defaults to a white color.
|
|
|
|
|
>
|
|
|
|
|
> Not strictly a method, it is a variable one can assign a new value to.
|
|
|
|
|
|
|
|
|
|
## Dependencies
|
|
|
|
|
|
|
|
|
|