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 <kaleidoscope@gergo.csillger.hu>
pull/389/head
Gergely Nagy 7 years ago
parent 94ab7c4534
commit 9082741e97

@ -27,7 +27,7 @@ effects to, and use the plugin:
TOPSY(1), TOPSY(2), TOPSY(3) TOPSY(1), TOPSY(2), TOPSY(3)
void setup () { void setup () {
USE_PLUGINS (&TopsyTurvy); Kaleidoscope.use (&TopsyTurvy);
Kaleidoscope.setup (); Kaleidoscope.setup ();
} }

@ -40,7 +40,7 @@ const Key keymaps[][ROWS][COLS] PROGMEM = {
}; };
void setup() { void setup() {
USE_PLUGINS(&TopsyTurvy); Kaleidoscope.use(&TopsyTurvy);
Kaleidoscope.setup(); Kaleidoscope.setup();
} }

@ -30,7 +30,7 @@ TopsyTurvy::TopsyTurvy(void) {
} }
void TopsyTurvy::begin(void) { void TopsyTurvy::begin(void) {
event_handler_hook_use(eventHandlerHook); Kaleidoscope.useEventHandlerHook(eventHandlerHook);
} }
Key TopsyTurvy::eventHandlerHook(Key mapped_key, byte row, byte col, uint8_t key_state) { Key TopsyTurvy::eventHandlerHook(Key mapped_key, byte row, byte col, uint8_t key_state) {

Loading…
Cancel
Save