|
|
@ -6,16 +6,13 @@
|
|
|
|
[st:broken]: https://img.shields.io/badge/broken-X-black.png?style=flat&colorA=e05d44&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:experimental]: https://img.shields.io/badge/experimental----black.png?style=flat&colorA=dfb317&colorB=494e52
|
|
|
|
|
|
|
|
|
|
|
|
A haunting effect, where the lights follow your fingers as you keep typing.
|
|
|
|
The `StalkerEffect` plugin provides an interesting new typing experience: the
|
|
|
|
Always behind, always watching, always stalking the fingertips...
|
|
|
|
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.
|
|
|
|
The plugin simply lights up the LED below keys you press, and fades them away
|
|
|
|
|
|
|
|
soon after, producing a haunting trail effect.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Using the plugin
|
|
|
|
## Using the plugin
|
|
|
|
|
|
|
|
|
|
|
|
To use the plugin, one needs to include the header, and activate the effect. It
|
|
|
|
To use the plugin, one needs to include the header, and select the effect.
|
|
|
|
is also possible to use a custom color instead of the white-ish default.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```c++
|
|
|
|
```c++
|
|
|
|
#include <Akela-LED-Stalker.h>
|
|
|
|
#include <Akela-LED-Stalker.h>
|
|
|
@ -23,6 +20,7 @@ is also possible to use a custom color instead of the white-ish default.
|
|
|
|
void setup () {
|
|
|
|
void setup () {
|
|
|
|
Keyboardio.setup (KEYMAP_SIZE);
|
|
|
|
Keyboardio.setup (KEYMAP_SIZE);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StalkerEffect.configure (STALKER (Haunt, {0xff, 0, 0}));
|
|
|
|
Keyboardio.use (&StalkerEffect, NULL);
|
|
|
|
Keyboardio.use (&StalkerEffect, NULL);
|
|
|
|
|
|
|
|
|
|
|
|
StalkerEffect.configure ({0x00, 0xff, 0xff});
|
|
|
|
StalkerEffect.configure ({0x00, 0xff, 0xff});
|
|
|
@ -31,13 +29,37 @@ void setup () {
|
|
|
|
|
|
|
|
|
|
|
|
It is recommended to place the activation of the plugin (the `Keyboardio.use`
|
|
|
|
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.
|
|
|
|
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
|
|
|
|
## Plugin methods
|
|
|
|
|
|
|
|
|
|
|
|
The plugin provides the `StalkerEffect` object, which has the following
|
|
|
|
The plugin provides the `StalkerEffect` object, which has the following
|
|
|
|
method:
|
|
|
|
method:
|
|
|
|
|
|
|
|
|
|
|
|
### `.configure(color)`
|
|
|
|
### `.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 the
|
|
|
|
|
|
|
|
> `StalkerEffect` object. Any arguments given to the macro, are also passed on
|
|
|
|
|
|
|
|
> to the effect. If the effect takes no arguments, use `NULL`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 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()`
|
|
|
|
|
|
|
|
|
|
|
|
> Set the color to use for highlighting pressed keys. If unset, will use the
|
|
|
|
> A blazing trail of fire will follow our fingers!
|
|
|
|
> default white-ish color.
|
|
|
|
|
|
|
|