diff --git a/README.md b/README.md index eefb9d52..294b37b8 100644 --- a/README.md +++ b/README.md @@ -29,12 +29,12 @@ and register the `Focus` hooks: #include void setup() { - USE_PLUGINS(&EEPROMSettings, &FingerPainter, &Focus); + Kaleidoscope.use(&EEPROMSettings, &FingerPainter, &Focus); Kaleidoscope.setup(); EEPROMSettings.seal(); - + Focus.addHook(FOCUS_HOOK_FINGERPAINTER); } ``` diff --git a/examples/FingerPainter/FingerPainter.ino b/examples/FingerPainter/FingerPainter.ino index b28ea35d..0a27b6e6 100644 --- a/examples/FingerPainter/FingerPainter.ino +++ b/examples/FingerPainter/FingerPainter.ino @@ -44,7 +44,7 @@ const Key keymaps[][ROWS][COLS] PROGMEM = { }; void setup() { - USE_PLUGINS(&LEDOff, &EEPROMSettings, &FingerPainter, &Focus); + Kaleidoscope.use(&LEDOff, &EEPROMSettings, &FingerPainter, &Focus); Kaleidoscope.setup();