keyboardio/Kaleidoscope-LED-Stalker

Name: Kaleidoscope-LED-Stalker

Owner: Keyboardio

Description: A haunting effect, that produces a trail of light as you tap the keys

Created: 2017-01-21 19:22:59.0

Updated: 2018-05-15 05:09:46.0

Pushed: 2018-05-15 05:09:47.0

Homepage: null

Size: 52

Language: C++

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Kaleidoscope-LED-Stalker

status Build Status

The StalkerEffect 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.

Using the plugin

To use the plugin, one needs to include the header and select the effect.

lude <Kaleidoscope.h>
lude <Kaleidoscope-LEDControl.h>
lude <Kaleidoscope-LED-Stalker.h>

IDOSCOPE_INIT_PLUGINS(LEDControl, StalkerEffect);

 setup (){
leidoscope.setup();

alkerEffect.variant = STALKER(Haunt, (CRGB(0, 128, 0)));
alkerEffect.activate();

It is recommended to place the activation of the plugin (the Kaleidoscope.use 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 STALKER macro to do so.

Plugin methods

The plugin provides the StalkerEffect 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 STALKER macro to declare the effect itself.

.step_length

The length - in milliseconds - of each step of the animation. An animation lasts 256 steps.

Defaults to 50.

Plugin helpers
STALKER(effect, params)

Returns an effect, to be used to assign a value the .variant property of the StalkerEffect 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!

Rainbow()

Leave a rainbow behind, where your fingers has been!

Dependencies
Further reading

Starting from the example is the recommended way of getting started with the plugin.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.