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