Updated to use Keyboardio-LEDControl

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/389/head
Gergely Nagy 8 years ago
parent ace73a9449
commit 386f893829

@ -41,7 +41,7 @@ const Key keymaps[][ROWS][COLS] PROGMEM = {
void setup () {
Keyboardio.setup (KEYMAP_SIZE);
Keyboardio.use (&HeatmapEffect, NULL);
Keyboardio.use (&LEDControl, &HeatmapEffect, NULL);
HeatmapEffect.activate ();
}

@ -114,7 +114,7 @@ namespace Akela {
for (uint8_t c = 0; c < COLS; c++) {
uint8_t cap = totalKeys || 1;
float v = float(heatmap[r][c]) / cap;
led_set_crgb_at (r, c, computeColor (v));
LEDControl.led_set_crgb_at (r, c, computeColor (v));
}
}
}

@ -19,6 +19,7 @@
#pragma once
#include <Akela-Core.h>
#include <Keyboardio-LEDControl.h>
namespace Akela {
class Heatmap : public LEDMode {

Loading…
Cancel
Save