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
Gergely Nagy 7 years ago
parent a31d686911
commit 2c27bf8476

@ -74,7 +74,7 @@ time an action is to be performed.
TD(0)
// later in the Sketch:
void tapDanceAction(uint8_t tap_dance_index, uint8_t tap_count,
void tapDanceAction(uint8_t tap_dance_index, uint8_t tap_count,
kaleidoscope::TapDance::ActionType tap_dance_action) {
switch (tap_dance_index) {
case 0:
@ -84,8 +84,8 @@ void tapDanceAction(uint8_t tap_dance_index, uint8_t tap_count,
}
void setup() {
USE_PLUGINS(&TapDance);
Kaleidoscope.use(&TapDance);
Kaleidoscope.setup ();
}
```

@ -53,7 +53,7 @@ void tapDanceAction(uint8_t tap_dance_index, byte row, byte col, uint8_t tap_cou
}
void setup() {
USE_PLUGINS(&TapDance);
Kaleidoscope.use(&TapDance);
Kaleidoscope.setup();
}

@ -100,8 +100,8 @@ TapDance::TapDance(void) {
}
void TapDance::begin(void) {
event_handler_hook_use(eventHandlerHook);
loop_hook_use(loopHook);
Kaleidoscope.useEventHandlerHook(eventHandlerHook);
Kaleidoscope.useLoopHook(loopHook);
}
void TapDance::actionKeys(uint8_t tap_count, ActionType tap_dance_action, uint8_t max_keys, const Key tap_keys[]) {

Loading…
Cancel
Save