From 98b389411b29247a1a84ac722f150fcb229610ee Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Thu, 15 Jun 2017 08:35:57 +0200 Subject: [PATCH] Use Kaleidoscope.use instead of USE_PLUGINS Signed-off-by: Gergely Nagy --- README.md | 2 +- examples/EEPROM-Keymap/EEPROM-Keymap.ino | 2 +- src/Kaleidoscope/EEPROM-Keymap.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a7f7fc6a..8ab29ee4 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ We can then update the keymap via [Focus][plugin:focus]. void setup() { Serial.begin(9600); - USE_PLUGINS(&EEPROMKeymap, &Focus); + Kaleidoscope.use(&EEPROMKeymap, &Focus); Kaleidoscope.setup(); diff --git a/examples/EEPROM-Keymap/EEPROM-Keymap.ino b/examples/EEPROM-Keymap/EEPROM-Keymap.ino index 207d7bae..1f3dd91d 100644 --- a/examples/EEPROM-Keymap/EEPROM-Keymap.ino +++ b/examples/EEPROM-Keymap/EEPROM-Keymap.ino @@ -42,7 +42,7 @@ const Key keymaps[][ROWS][COLS] PROGMEM = { void setup() { Serial.begin(9600); - USE_PLUGINS(&EEPROMKeymap, &Focus); + Kaleidoscope.use(&EEPROMKeymap, &Focus); Kaleidoscope.setup(); diff --git a/src/Kaleidoscope/EEPROM-Keymap.cpp b/src/Kaleidoscope/EEPROM-Keymap.cpp index a56b17ca..e9a9de8d 100644 --- a/src/Kaleidoscope/EEPROM-Keymap.cpp +++ b/src/Kaleidoscope/EEPROM-Keymap.cpp @@ -28,7 +28,7 @@ EEPROMKeymap::EEPROMKeymap(void) { } void EEPROMKeymap::begin(void) { - USE_PLUGINS(&::EEPROMSettings); + Kaleidoscope.use(&::EEPROMSettings); } void EEPROMKeymap::max_layers(uint8_t max) {