Stop using obsolete interfaces

`USE_PLUGINS` and `loop_hook_use` are deprecated, use `Kaleidoscope.use` and
`Kaleidoscope.useLoopHook` instead.

Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
pull/389/head
Gergely Nagy 7 years ago
parent 83351d0fc4
commit d77f6f8de0

@ -44,7 +44,7 @@ static const kaleidoscope::GhostInTheFirmware::GhostKey ghost_keys[] PROGMEM = {
};
void setup() {
USE_PLUGINS(&GhostInTheFirmware, &Macros);
Kaleidoscope.use(&GhostInTheFirmware, &Macros);
Kaleidoscope.setup ();

@ -121,12 +121,12 @@ static const kaleidoscope::GhostInTheFirmware::GhostKey ghost_keys[] PROGMEM = {
};
void setup() {
USE_PLUGINS(&GhostInTheFirmware, &StalkerEffect, &Macros);
Kaleidoscope.use(&GhostInTheFirmware, &StalkerEffect, &Macros);
StalkerEffect.variant = STALKER(BlazingTrail);
GhostInTheFirmware.ghost_keys = ghost_keys;
event_handler_hook_use(eventDropper);
Kaleidoscope.useEventHandlerHook(eventDropper);
Kaleidoscope.setup();
}

@ -32,7 +32,7 @@ GhostInTheFirmware::GhostInTheFirmware(void) {
}
void GhostInTheFirmware::begin(void) {
loop_hook_use(this->loopHook);
Kaleidoscope.useLoopHook(this->loopHook);
}
void GhostInTheFirmware::activate(void) {

Loading…
Cancel
Save