diff options
author | Jesse Vincent <jesse@fsck.com> | 2019-02-27 10:44:24 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-27 10:44:24 -0800 |
commit | 0ebf5f3b7fe20ae3a71230517542898f7a0f8ebc (patch) | |
tree | a653529b9e2f7bb03f0333dd9ac01161821c644d | |
parent | c700ee2381a968b701138fef8685df2a5309323c (diff) | |
parent | a03b96445911c9ffb586571adeb7f08b3ba3637a (diff) | |
download | Model01-Firmware-0ebf5f3b7fe20ae3a71230517542898f7a0f8ebc.tar.gz Model01-Firmware-0ebf5f3b7fe20ae3a71230517542898f7a0f8ebc.zip |
Merge pull request #80 from keyboardio/colormap
Enable the Colormap plugin too
-rw-r--r-- | Model01-Firmware.ino | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino index 7074861..5e2e115 100644 --- a/Model01-Firmware.ino +++ b/Model01-Firmware.ino @@ -57,6 +57,9 @@ // Support for an LED mode that prints the keys you press in letters 4px high #include "Kaleidoscope-LED-AlphaSquare.h" +// Support for an LED mode that lets one configure per-layer color maps +#include "Kaleidoscope-Colormap.h" + // Support for Keyboardio's internal keyboard testing mode #include "Kaleidoscope-Model01-TestMode.h" @@ -466,6 +469,9 @@ KALEIDOSCOPE_INIT_PLUGINS( // The stalker effect lights up the keys you've pressed recently StalkerEffect, + // The Colormap effect makes it possible to set up per-layer colormaps + ColormapEffect, + // The numpad plugin is responsible for lighting up the 'numpad' mode // with a custom LED effect NumPad, @@ -528,6 +534,11 @@ void setup() { // by using the `settings.defaultLayer` Focus command, or by using the // `keymap.onlyCustom` command to use EEPROM layers only. EEPROMKeymap.setup(5); + + // We need to tell the Colormap plugin how many layers we want to have custom + // maps for. To make things simple, we set it to five layers, which is how + // many editable layers we have (see above). + ColormapEffect.max_layers(5); } /** loop is the second of the standard Arduino sketch functions. |