The Big Rename

Renamed the library to Kaleidoscope-LED-ActiveModColor, and followed up with
other renames.

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

@ -1,4 +1,4 @@
# Akela-LED-ActiveModColor
# Kaleidoscope-LED-ActiveModColor
![status][st:experimental]
@ -16,18 +16,19 @@ To use the plugin, one needs to include the header, and activate the effect. It
is also possible to use a custom color instead of the white default.
```c++
#include <Akela-LED-ActiveModColor.h>
#include <Kaleidoscope.h>
#include <Kaleidoscope-LED-ActiveModColor.h>
void setup () {
Keyboardio.setup (KEYMAP_SIZE);
Kaleidoscope.setup (KEYMAP_SIZE);
Keyboardio.use (&ActiveModColorEffect, NULL);
Kaleidoscope.use (&ActiveModColorEffect, NULL);
ActiveModColorEffect.configure ({0x00, 0xff, 0xff});
}
```
It is recommended to place the activation (the `Keyboardio.use` call) of the
It is recommended to place the activation (the `Kaleidoscope.use` call) of the
plugin last, so that it can reliably override any other plugins that may work
with the LEDs, and apply the highlight over those.
@ -46,4 +47,4 @@ method:
Starting from the [example][plugin:example] is the recommended way of getting
started with the plugin.
[plugin:example]: https://github.com/keyboardio/Akela-LED-ActiveModColor/blob/master/examples/LED-ActiveModColor/LED-ActiveModColor.ino
[plugin:example]: https://github.com/keyboardio/Kaleidoscope-LED-ActiveModColor/blob/master/examples/LED-ActiveModColor/LED-ActiveModColor.ino

@ -1,5 +1,5 @@
/* -*- mode: c++ -*-
* Akela -- Animated Keyboardio Extension Library for Anything
* Kaleidoscope-LED-ActiveModColor -- Light up the LEDs under the active modifiers
* Copyright (C) 2016, 2017 Gergely Nagy
*
* This program is free software: you can redistribute it and/or modify
@ -16,7 +16,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <Akela-LED-ActiveModColor.h>
#include <Kaleidoscope.h>
#include <Kaleidoscope-LED-ActiveModColor.h>
const Key keymaps[][ROWS][COLS] PROGMEM = {
[0] = KEYMAP_STACKED
@ -40,12 +41,12 @@ const Key keymaps[][ROWS][COLS] PROGMEM = {
};
void setup () {
Keyboardio.setup (KEYMAP_SIZE);
Keyboardio.use (&LEDControl, &ActiveModColorEffect, NULL);
Kaleidoscope.setup (KEYMAP_SIZE);
Kaleidoscope.use (&LEDControl, &ActiveModColorEffect, NULL);
ActiveModColorEffect.configure ({0x00, 0xff, 0xff});
}
void loop () {
Keyboardio.loop ();
Kaleidoscope.loop ();
}

@ -1,10 +1,10 @@
name=Akela-LED-ActiveModColor
name=Kaleidoscope-LED-ActiveModColor
version=0.0.0
author=Gergely Nagy
maintainer=Gergely Nagy <akela@gergo.csillger.hu>
maintainer=Gergely Nagy <kaleidoscope@gergo.csillger.hu>
sentence=Light up the LEDs under the active modifiers.
paragraph=Supports one-shot and normal modifiers - if it is active, it lights up.
category=Communication
url=https://github.com/keyboardio/Akela-LED-ActiveModColor
url=https://github.com/keyboardio/Kaleidoscope-LED-ActiveModColor
architectures=avr
dot_a_linkage=true

@ -1,5 +1,5 @@
/* -*- mode: c++ -*-
* Akela -- Animated Keyboardio Extension Library for Anything
* Kaleidoscope-LED-ActiveModColor -- Light up the LEDs under the active modifiers
* Copyright (C) 2016, 2017 Gergely Nagy
*
* This program is free software: you can redistribute it and/or modify
@ -18,4 +18,4 @@
#pragma once
#include <Akela/LED-ActiveModColor.h>
#include <Kaleidoscope/LED-ActiveModColor.h>

@ -1,5 +1,5 @@
/* -*- mode: c++ -*-
* Akela -- Animated Keyboardio Extension Library for Anything
* Kaleidoscope-LED-ActiveModColor -- Light up the LEDs under the active modifiers
* Copyright (C) 2016, 2017 Gergely Nagy
*
* This program is free software: you can redistribute it and/or modify
@ -16,9 +16,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <Akela-LED-ActiveModColor.h>
#include <Kaleidoscope-LED-ActiveModColor.h>
#include <Kaleidoscope-Ranges.h>
namespace Akela {
namespace KaleidoscopePlugins {
namespace LEDEffects {
cRGB ActiveModColorEffect::highlightColor = (cRGB) {0xff, 0xff, 0xff};
@ -44,8 +45,8 @@ namespace Akela {
for (byte c = 0; c < COLS; c++) {
Key k = Layer.lookup (r, c);
if (k.raw >= Akela::Ranges::OSM_FIRST && k.raw <= Akela::Ranges::OSM_LAST) {
uint8_t idx = k.raw - Akela::Ranges::OSM_FIRST;
if (k.raw >= KaleidoscopePlugins::Ranges::OSM_FIRST && k.raw <= KaleidoscopePlugins::Ranges::OSM_LAST) {
uint8_t idx = k.raw - KaleidoscopePlugins::Ranges::OSM_FIRST;
k.flags = 0;
k.keyCode = Key_LCtrl.keyCode + idx;
}
@ -62,4 +63,4 @@ namespace Akela {
};
};
Akela::LEDEffects::ActiveModColorEffect ActiveModColorEffect;
KaleidoscopePlugins::LEDEffects::ActiveModColorEffect ActiveModColorEffect;

@ -1,5 +1,5 @@
/* -*- mode: c++ -*-
* Akela -- Animated Keyboardio Extension Library for Anything
* Kaleidoscope-LED-ActiveModColor -- Light up the LEDs under the active modifiers
* Copyright (C) 2016, 2017 Gergely Nagy
*
* This program is free software: you can redistribute it and/or modify
@ -16,12 +16,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <Akela-Core.h>
#include <Keyboardio-LEDControl.h>
#include <Kaleidoscope.h>
#include <Kaleidoscope-LEDControl.h>
namespace Akela {
namespace KaleidoscopePlugins {
namespace LEDEffects {
class ActiveModColorEffect : public KeyboardioPlugin {
class ActiveModColorEffect : public KaleidoscopePlugin {
public:
ActiveModColorEffect (void);
@ -35,4 +35,4 @@ namespace Akela {
};
};
extern Akela::LEDEffects::ActiveModColorEffect ActiveModColorEffect;
extern KaleidoscopePlugins::LEDEffects::ActiveModColorEffect ActiveModColorEffect;
Loading…
Cancel
Save