Updated to use Keyboardio-LEDControl

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

@ -43,7 +43,7 @@ void setup () {
Keyboardio.setup (KEYMAP_SIZE);
StalkerEffect.configure (STALKER (BlazingTrail, NULL));
Keyboardio.use (&StalkerEffect, NULL);
Keyboardio.use (&LEDControl, &StalkerEffect, NULL);
}
void loop () {

@ -59,7 +59,7 @@ namespace Akela {
for (byte r = 0; r < ROWS; r++) {
for (byte c = 0; c < COLS; c++) {
if (map[r][c])
led_set_crgb_at (r, c, colorComputer->compute (map[r][c]));
LEDControl.led_set_crgb_at (r, c, colorComputer->compute (map[r][c]));
bool wasZero = (map[r][c] == 0);
@ -73,7 +73,7 @@ namespace Akela {
map[r][c] = 0;
if (!wasZero && !map[r][c])
led_set_crgb_at (r, c, (cRGB){0, 0, 0});
LEDControl.led_set_crgb_at (r, c, (cRGB){0, 0, 0});
}
}
}

@ -17,6 +17,7 @@
*/
#include <Akela-Core.h>
#include <Keyboardio-LEDControl.h>
#define STALKER(n, ...) (({static Akela::LEDEffects::Stalker::n _effect (__VA_ARGS__); &_effect;}))

Loading…
Cancel
Save