Migrate from USE_PLUGINS to Kaleidoscope.use

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/365/head
Gergely Nagy 8 years ago
parent c2d5103a17
commit 9317ec61e2

@ -94,7 +94,7 @@ const macro_t *macroAction(uint8_t macro_index, uint8_t key_state) {
} }
void setup() { void setup() {
USE_PLUGINS(&AlphaSquare, &AlphaSquareEffect, &Macros); Kaleidoscope.use(&AlphaSquare, &AlphaSquareEffect, &Macros);
Kaleidoscope.setup(); Kaleidoscope.setup();

@ -31,7 +31,7 @@ AlphaSquareEffect::AlphaSquareEffect(void) {
void void
AlphaSquareEffect::begin(void) { AlphaSquareEffect::begin(void) {
Kaleidoscope.useEventHandlerHook(eventHandlerHook); Kaleidoscope.useEventHandlerHook(eventHandlerHook);
Kaleidoscope.use(&LEDControl, NULL); Kaleidoscope.use(&LEDControl);
us_ = LEDControl.mode_add(this); us_ = LEDControl.mode_add(this);
} }

Loading…
Cancel
Save