Migrate from USE_PLUGINS to Kaleidoscope.use

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/389/head
Gergely Nagy 8 years ago
parent 654ed3513a
commit 150e39b87d

@ -32,7 +32,7 @@ register the `Focus` hooks, and it will do the rest.
#include <Kaleidoscope-Focus.h> #include <Kaleidoscope-Focus.h>
void setup(void) { void setup(void) {
USE_PLUGINS(&ColormapEffect, &Focus); Kaleidoscope.use(&ColormapEffect, &Focus);
Kaleidoscope.setup(); Kaleidoscope.setup();

@ -39,7 +39,7 @@ const Key keymaps[][ROWS][COLS] PROGMEM = {
}; };
void setup() { void setup() {
USE_PLUGINS(&ColormapEffect); Kaleidoscope.use(&ColormapEffect);
Kaleidoscope.setup(); Kaleidoscope.setup();
ColormapEffect.max_layers(1); ColormapEffect.max_layers(1);

@ -35,7 +35,7 @@ ColormapEffect::ColormapEffect(void) {
void ColormapEffect::begin(void) { void ColormapEffect::begin(void) {
LEDMode::begin(); LEDMode::begin();
USE_PLUGINS(&::EEPROMSettings, &::LEDPaletteTheme); Kaleidoscope.use(&::EEPROMSettings, &::LEDPaletteTheme);
} }
void ColormapEffect::max_layers(uint8_t max_) { void ColormapEffect::max_layers(uint8_t max_) {

Loading…
Cancel
Save