From c7bc3ad04cef488e55fa5ea57c67c8a870ab7c55 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Thu, 17 Aug 2017 11:51:08 +0200 Subject: [PATCH] Stop using USE_PLUGINS The `USE_PLUGINS` macro is getting obsoleted, use `Kaleidoscope.use` instead. Signed-off-by: Gergely Nagy --- README.md | 4 ++-- examples/FingerPainter/FingerPainter.ino | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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();