Skip to content

cdisselkoen/Kaleidoscope-LED-LetterGuesser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kaleidoscope-LED-LetterGuesser

status Build Status

LetterGuesser is an LED effect that tries to 'guess' the next letter you will type. It leverages knowledge about common digraphs (in English) to light up 'guessed' or 'suggested' letters after each key you press. By default the most likely letter will be illuminated in green, and the 2nd and 3rd most likely letters will be illuminated in white. Colors are configurable.

By default, LetterGuesser goes blank after any keypress that is not a letter. Optionally, LetterGuesser can be configured to also 'guess' letters following whitespace (space, enter, and tab). (In this case, LetterGuesser guesses the first letter of the next word.)

At the moment, LetterGuesser only works properly with the QWERTY layout. If you have a non-QWERTY layout, LetterGuesser will receive the correct input key based on your layout, but will light up suggestions based on the suggestions' QWERTY positions.

Using the plugin

To use the plugin, one needs to include the header and select the effect. Optionally, one can also set the colors to be used for the 1st, 2nd, and 3rd most likely next letters.

#include <Kaleidoscope.h>
#include <Kaleidoscope-LED-LetterGuesser.h>

void setup (){
  Kaleidoscope.use(&LetterGuesser);

  Kaleidoscope.setup();

  LetterGuesserEffect.color1 = CRGB(0, 255, 0);
  LetterGuesserEffect.color2 = CRGB(255, 255, 255);
  LetterGuesserEffect.color3 = CRGB(255, 255, 255);
  LetterGuesserEffect.activate();
}

Plugin methods

The plugin provides the LetterGuesserEffect object, which has the following properties:

.color1, .color2, and .color3

The colors for the 1st, 2nd, and 3rd most likely next letters.

.afterSpace

If true, highlight letters following whitespace (space, enter, and tab). If false (default), no letters are highlighted following whitespace.

Dependencies

Further reading

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

About

Kaleidoscope plugin creating an LED 'LetterGuesser' effect.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published