From 8cc00c119e94e06de45edb4f782cdd324087cb4e Mon Sep 17 00:00:00 2001 From: Selene Scriven Date: Sat, 5 Aug 2017 00:33:39 -0600 Subject: [PATCH] updated README and example --- README.md | 44 ++------------------------ examples/LED-Wavepool/LED-Wavepool.ino | 1 - 2 files changed, 3 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index 1c97f4d7..f51048da 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,8 @@ [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 -The `WavepoolEffect` plugin provides an interesting new typing experience: the -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 `WavepoolEffect` plugin makes waves of light splash out from each keypress. +When idle, it will also simulate gentle rainfall on the keyboard. ## Using the plugin @@ -26,55 +25,18 @@ void setup (){ Kaleidoscope.setup(); - WavepoolEffect.variant = WAVEPOOL(Haunt, (CRGB(0, 128, 0))); WavepoolEffect.activate(); } ``` It is recommended to place the activation of the plugin (the `USE_PLUGINS` call) -as early as possible, so the plugin can catch all relevant key presses. The -configuration can happen at any time and should use the `WAVEPOOL` macro to do so. +as early as possible, so the plugin can catch all relevant key presses. ## Plugin methods The plugin provides the `WavepoolEffect` object, which has the following properties: -### `.variant` - -> Set the effect to use with the plugin. See below for a list. -> -> It is recommended to use the `WAVEPOOL` macro to declare the effect itself. - -### `.stepLength` - -> The length - in milliseconds - of each step of the animation. An animation -> lasts 256 steps. -> -> Defaults to 50. - -## Plugin helpers - -### `WAVEPOOL(effect, params)` - -> Returns an effect, to be used to assign a value the `.variant` property of the -> `WavepoolEffect` object. Any arguments given to the macro are passed on -> to the effect. If the effect takes no arguments, use an empty `params` list. - -## 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). Use the `CRGB(r,g,b)` macro to specify the -> color, if you want something else than the ghostly white. - -### `BlazingTrail()` - -> A blazing trail of fire will follow our fingers! - ## Dependencies * [Kaleidoscope-LEDControl](https://github.com/keyboardio/Kaleidoscope-LEDControl) diff --git a/examples/LED-Wavepool/LED-Wavepool.ino b/examples/LED-Wavepool/LED-Wavepool.ino index e257a2e9..96f78f7b 100644 --- a/examples/LED-Wavepool/LED-Wavepool.ino +++ b/examples/LED-Wavepool/LED-Wavepool.ino @@ -45,7 +45,6 @@ void setup() { Kaleidoscope.setup(); - WavepoolEffect.variant = WAVEPOOL(BlazingTrail); WavepoolEffect.activate(); }