|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
/* -*- mode: c++ -*-
|
|
|
|
|
* Kaleidoscope-EEPROM-Colormap -- Per-layer colormap effect
|
|
|
|
|
* Copyright (C) 2017 Gergely Nagy
|
|
|
|
|
* Copyright (C) 2017, 2018 Gergely Nagy
|
|
|
|
|
*
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
@ -17,7 +17,12 @@
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <Kaleidoscope.h>
|
|
|
|
|
#include <Kaleidoscope-EEPROM-Settings.h>
|
|
|
|
|
#include <Kaleidoscope-Colormap.h>
|
|
|
|
|
#include <Kaleidoscope-Focus.h>
|
|
|
|
|
#include <Kaleidoscope-LED-Palette-Theme.h>
|
|
|
|
|
|
|
|
|
|
// *INDENT-OFF*
|
|
|
|
|
|
|
|
|
|
const Key keymaps[][ROWS][COLS] PROGMEM = {
|
|
|
|
|
[0] = KEYMAP_STACKED
|
|
|
|
@ -38,12 +43,19 @@ const Key keymaps[][ROWS][COLS] PROGMEM = {
|
|
|
|
|
Key_NoKey),
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
void setup() {
|
|
|
|
|
Kaleidoscope.use(&ColormapEffect);
|
|
|
|
|
// *INDENT-ON*
|
|
|
|
|
|
|
|
|
|
KALEIDOSCOPE_INIT_PLUGINS(EEPROMSettings,
|
|
|
|
|
LEDPaletteTheme,
|
|
|
|
|
ColormapEffect,
|
|
|
|
|
Focus);
|
|
|
|
|
|
|
|
|
|
void setup() {
|
|
|
|
|
Kaleidoscope.setup();
|
|
|
|
|
ColormapEffect.max_layers(1);
|
|
|
|
|
ColormapEffect.activate();
|
|
|
|
|
|
|
|
|
|
EEPROMSettings.seal();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void loop() {
|
|
|
|
|