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,10 +35,10 @@ static const kaleidoscope::ShapeShifter::dictionary_t shape_shift_dictionary[] P
};
void setup() {
USE_PLUGINS(&ShapeShifter);
Kaleidoscope.use(&ShapeShifter);
Kaleidoscope.setup();
ShapeShifter.dictionary = shape_shift_dictionary;
}
```

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

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

Loading…
Cancel
Save