From a8abf11b1134bf2dfa20aeee3ecc771dc7924a09 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Fri, 27 Jan 2017 09:36:56 +0100 Subject: [PATCH] Updated to use Keyboardio-LEDControl Signed-off-by: Gergely Nagy --- examples/LEDEffects/LEDEffects.ino | 2 +- src/Akela/TriColor.cpp | 4 ++-- src/Akela/TriColor.h | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/LEDEffects/LEDEffects.ino b/examples/LEDEffects/LEDEffects.ino index a0f9099f..3f1800e2 100644 --- a/examples/LEDEffects/LEDEffects.ino +++ b/examples/LEDEffects/LEDEffects.ino @@ -44,7 +44,7 @@ const Key keymaps[][ROWS][COLS] PROGMEM = { void setup () { Keyboardio.setup (KEYMAP_SIZE); - Keyboardio.use (&LEDOff, &MiamiEffect, &JukeboxEffect, &JukeboxAlternateEffect, NULL); + Keyboardio.use (&LEDControl, &LEDOff, &MiamiEffect, &JukeboxEffect, &JukeboxAlternateEffect, NULL); MiamiEffect.activate (); } diff --git a/src/Akela/TriColor.cpp b/src/Akela/TriColor.cpp index 735619b9..39d6ffe4 100644 --- a/src/Akela/TriColor.cpp +++ b/src/Akela/TriColor.cpp @@ -41,7 +41,7 @@ namespace Akela { // Special keys are always modColor if (k.flags != 0) { - led_set_crgb_at (r, c, modColor); + LEDControl.led_set_crgb_at (r, c, modColor); continue; } @@ -61,7 +61,7 @@ namespace Akela { break; } - led_set_crgb_at (r, c, color); + LEDControl.led_set_crgb_at (r, c, color); } } } diff --git a/src/Akela/TriColor.h b/src/Akela/TriColor.h index f54059ec..522d0cab 100644 --- a/src/Akela/TriColor.h +++ b/src/Akela/TriColor.h @@ -19,6 +19,7 @@ #pragma once #include +#include namespace Akela { namespace LEDEffects {