From 150e39b87d43475d741098efaa4c101ffdc633eb Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Thu, 15 Jun 2017 08:28:25 +0200 Subject: [PATCH] Migrate from USE_PLUGINS to Kaleidoscope.use Signed-off-by: Gergely Nagy --- README.md | 2 +- examples/Colormap/Colormap.ino | 2 +- src/Kaleidoscope/Colormap.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ebf15ef0..507e5885 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ register the `Focus` hooks, and it will do the rest. #include void setup(void) { - USE_PLUGINS(&ColormapEffect, &Focus); + Kaleidoscope.use(&ColormapEffect, &Focus); Kaleidoscope.setup(); diff --git a/examples/Colormap/Colormap.ino b/examples/Colormap/Colormap.ino index f9dc42db..56699c79 100644 --- a/examples/Colormap/Colormap.ino +++ b/examples/Colormap/Colormap.ino @@ -39,7 +39,7 @@ const Key keymaps[][ROWS][COLS] PROGMEM = { }; void setup() { - USE_PLUGINS(&ColormapEffect); + Kaleidoscope.use(&ColormapEffect); Kaleidoscope.setup(); ColormapEffect.max_layers(1); diff --git a/src/Kaleidoscope/Colormap.cpp b/src/Kaleidoscope/Colormap.cpp index 2640283f..bd564a73 100644 --- a/src/Kaleidoscope/Colormap.cpp +++ b/src/Kaleidoscope/Colormap.cpp @@ -35,7 +35,7 @@ ColormapEffect::ColormapEffect(void) { void ColormapEffect::begin(void) { LEDMode::begin(); - USE_PLUGINS(&::EEPROMSettings, &::LEDPaletteTheme); + Kaleidoscope.use(&::EEPROMSettings, &::LEDPaletteTheme); } void ColormapEffect::max_layers(uint8_t max_) {