diff --git a/README.md b/README.md index 4e32a32e..8b660d72 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) { } void setup() { - USE_PLUGINS(&EEPROMKeymapProgrammer, &EEPROMKeymap, &Macros); + Kaleidoscope.use(&EEPROMKeymapProgrammer, &EEPROMKeymap, &Macros); Kaleidoscope.setup(); diff --git a/examples/EEPROM-Keymap-Programmer/EEPROM-Keymap-Programmer.ino b/examples/EEPROM-Keymap-Programmer/EEPROM-Keymap-Programmer.ino index ac86f472..0f7a937a 100644 --- a/examples/EEPROM-Keymap-Programmer/EEPROM-Keymap-Programmer.ino +++ b/examples/EEPROM-Keymap-Programmer/EEPROM-Keymap-Programmer.ino @@ -52,7 +52,7 @@ const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) { void setup() { Serial.begin(9600); - USE_PLUGINS(&EEPROMKeymapProgrammer, &EEPROMKeymap, &Macros); + Kaleidoscope.use(&EEPROMKeymapProgrammer, &EEPROMKeymap, &Macros); Kaleidoscope.setup(); diff --git a/src/Kaleidoscope/EEPROM-Keymap-Programmer.cpp b/src/Kaleidoscope/EEPROM-Keymap-Programmer.cpp index 4b7e4369..824e4936 100644 --- a/src/Kaleidoscope/EEPROM-Keymap-Programmer.cpp +++ b/src/Kaleidoscope/EEPROM-Keymap-Programmer.cpp @@ -28,7 +28,7 @@ EEPROMKeymapProgrammer::EEPROMKeymapProgrammer(void) { } void EEPROMKeymapProgrammer::begin(void) { - event_handler_hook_use(eventHandlerHook); + Kaleidoscope.useEventHandlerHook(eventHandlerHook); } void EEPROMKeymapProgrammer::nextState(void) {