Stop using deprecated interfaces

Use `Kaleidoscope.use`, `Kaleidoscope.useEventHandlerHook`, and
`Kaleidoscope.useLoopHook` instead of the deprecated `USE_PLUGINS`,
`event_handler_hook_use`, and `loop_hook_use` interfaces.

Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
pull/389/head^2
Gergely Nagy 7 years ago
parent 635e67fa73
commit 62c1672bf3

@ -35,7 +35,7 @@ static const kaleidoscope::ShapeShifter::dictionary_t shape_shift_dictionary[] P
}; };
void setup() { void setup() {
USE_PLUGINS(&ShapeShifter); Kaleidoscope.use(&ShapeShifter);
Kaleidoscope.setup(); Kaleidoscope.setup();

@ -46,7 +46,7 @@ static const kaleidoscope::ShapeShifter::dictionary_t shape_shift_dictionary[] P
}; };
void setup() { void setup() {
USE_PLUGINS(&ShapeShifter); Kaleidoscope.use(&ShapeShifter);
Kaleidoscope.setup(); Kaleidoscope.setup();

@ -28,8 +28,8 @@ ShapeShifter::ShapeShifter(void) {
} }
void ShapeShifter::begin(void) { void ShapeShifter::begin(void) {
event_handler_hook_use(eventHandlerHook); Kaleidoscope.useEventHandlerHook(eventHandlerHook);
loop_hook_use(loopHook); Kaleidoscope.useLoopHook(loopHook);
} }
void ShapeShifter::loopHook(bool is_post_clear) { void ShapeShifter::loopHook(bool is_post_clear) {

Loading…
Cancel
Save