From 068c33d18c6e1b711ea726bf33ee21f9bcecc50d Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Thu, 17 Aug 2017 12:39:48 +0200 Subject: [PATCH] Stop using deprecated interfaces Use `Kaleidoscope.use` and `Kaleidoscope.useEventHandlerHook` instead of the deprecated `USE_PLUGINS` and `event_handler_hook_use` interfaces. Signed-off-by: Gergely Nagy --- README.md | 4 ++-- examples/Syster/Syster.ino | 2 +- src/Kaleidoscope/Syster.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3f6790ff..500013ef 100644 --- a/README.md +++ b/README.md @@ -52,8 +52,8 @@ void systerAction(kaleidoscope::Syster::action_t action, const char *symbol) { void setup() { Serial.begin(9600); - - USE_PLUGINS(&Unicode, &Syster); + + Kaleidoscope.use(&Unicode, &Syster); Kaleidoscope.setup (); } diff --git a/examples/Syster/Syster.ino b/examples/Syster/Syster.ino index 9d7589d3..76d13296 100644 --- a/examples/Syster/Syster.ino +++ b/examples/Syster/Syster.ino @@ -65,7 +65,7 @@ void systerAction(kaleidoscope::Syster::action_t action, const char *symbol) { } void setup() { - USE_PLUGINS(&Unicode, &Syster); + Kaleidoscope.use(&Unicode, &Syster); Kaleidoscope.setup(); } diff --git a/src/Kaleidoscope/Syster.cpp b/src/Kaleidoscope/Syster.cpp index 4e5a8a08..7c6ff5cb 100644 --- a/src/Kaleidoscope/Syster.cpp +++ b/src/Kaleidoscope/Syster.cpp @@ -37,7 +37,7 @@ Syster::Syster(void) { } void Syster::begin(void) { - event_handler_hook_use(eventHandlerHook); + Kaleidoscope.useEventHandlerHook(eventHandlerHook); } void Syster::reset(void) {