|
|
|
@ -1,18 +1,18 @@
|
|
|
|
|
# Kaleidoscope-EEPROM-Colormap
|
|
|
|
|
# Kaleidoscope-Colormap
|
|
|
|
|
|
|
|
|
|
![status][st:experimental] [![Build Status][travis:image]][travis:status]
|
|
|
|
|
|
|
|
|
|
[travis:image]: https://travis-ci.org/keyboardio/Kaleidoscope-EEPROM-Colormap.svg?branch=master
|
|
|
|
|
[travis:status]: https://travis-ci.org/keyboardio/Kaleidoscope-EEPROM-Colormap
|
|
|
|
|
[travis:image]: https://travis-ci.org/keyboardio/Kaleidoscope-Colormap.svg?branch=master
|
|
|
|
|
[travis:status]: https://travis-ci.org/keyboardio/Kaleidoscope-Colormap
|
|
|
|
|
|
|
|
|
|
[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
|
|
|
|
|
|
|
|
|
|
The `EEPROM-ColorMap` extension provides an easier way to set up a different -
|
|
|
|
|
static - color map per-layer. This means that we can set up a map of colors for
|
|
|
|
|
each key, on a per-layer basis, and whenever a layer becomes active, the color
|
|
|
|
|
map for that layer is applied on top of everything else. The extension supports
|
|
|
|
|
The `Colormap` extension provides an easier way to set up a different - static -
|
|
|
|
|
color map per-layer. This means that we can set up a map of colors for each key,
|
|
|
|
|
on a per-layer basis, and whenever a layer becomes active, the color map for
|
|
|
|
|
that layer is applied on top of everything else. The extension supports
|
|
|
|
|
transparent colors, to make things easier.
|
|
|
|
|
|
|
|
|
|
Both the palette and the color map is stored in EEPROM, and the palette is
|
|
|
|
@ -30,14 +30,14 @@ and it will do the rest.
|
|
|
|
|
```c++
|
|
|
|
|
#include <Kaleidoscope.h>
|
|
|
|
|
#include <Kaleidoscope-LED-Palette-Theme.h>
|
|
|
|
|
#include <Kaleidoscope-EEPROM-Colormap.h>
|
|
|
|
|
#include <Kaleidoscope-Colormap.h>
|
|
|
|
|
#include <Kaleidoscope-Focus.h>
|
|
|
|
|
|
|
|
|
|
void setup (void) {
|
|
|
|
|
Kaleidoscope.setup ();
|
|
|
|
|
USE_PLUGINS (&EEPROMColormapEffect, &Focus);
|
|
|
|
|
USE_PLUGINS (&ColormapEffect, &Focus);
|
|
|
|
|
|
|
|
|
|
EEPROMColormapEffect.configure (1);
|
|
|
|
|
ColormapEffect.configure (1);
|
|
|
|
|
Focus.addHook (FOCUS_HOOK_LEDPALETTETHEME);
|
|
|
|
|
Focus.addHook (FOCUS_HOOK_COLORMAP);
|
|
|
|
|
}
|
|
|
|
@ -45,7 +45,7 @@ void setup (void) {
|
|
|
|
|
|
|
|
|
|
## Extension methods
|
|
|
|
|
|
|
|
|
|
The extension provides an `EEPROMColormapEffect` singleton object, with a single method:
|
|
|
|
|
The extension provides an `ColormapEffect` singleton object, with a single method:
|
|
|
|
|
|
|
|
|
|
### `.configure(maxLayers)`
|
|
|
|
|
|
|
|
|
@ -62,4 +62,4 @@ The extension provides an `EEPROMColormapEffect` singleton object, with a single
|
|
|
|
|
Starting from the [example][plugin:example] is the recommended way of getting
|
|
|
|
|
started with the plugin.
|
|
|
|
|
|
|
|
|
|
[plugin:example]: https://github.com/keyboardio/Kaleidoscope-EEPROM-Colormap/blob/master/examples/EEPROM-Colormap/EEPROM-Colormap.ino
|
|
|
|
|
[plugin:example]: https://github.com/keyboardio/Kaleidoscope-Colormap/blob/master/examples/Colormap/Colormap.ino
|
|
|
|
|