The Big Rename

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

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

@ -1,4 +1,4 @@
# Akela-LED-Stalker # Kaleidoscope-LED-Stalker
![status][st:experimental] ![status][st:experimental]
@ -15,17 +15,18 @@ trail of ghostly white lights, or a blazing trail of fire.
To use the plugin, one needs to include the header, and select the effect. To use the plugin, one needs to include the header, and select the effect.
```c++ ```c++
#include <Akela-LED-Stalker.h> #include <Kaleidoscope.h>
#include <Kaleidoscope-LED-Stalker.h>
void setup () { void setup () {
Keyboardio.setup (KEYMAP_SIZE); Kaleidoscope.setup (KEYMAP_SIZE);
StalkerEffect.configure (STALKER (Haunt, {0xff, 0, 0})); StalkerEffect.configure (STALKER (Haunt, {0xff, 0, 0}));
Keyboardio.use (&StalkerEffect, NULL); Kaleidoscope.use (&StalkerEffect, NULL);
} }
``` ```
It is recommended to place the activation of the plugin (the `Keyboardio.use` It is recommended to place the activation of the plugin (the `Kaleidoscope.use`
call) as early as possible, so the plugin can catch all relevant key presses. call) as early as possible, so the plugin can catch all relevant key presses.
The configuration can happen at any time, but using the `STALKER` macro is The configuration can happen at any time, but using the `STALKER` macro is
highly recommended. highly recommended.
@ -76,4 +77,4 @@ The plugin provides the following effects:
Starting from the [example][plugin:example] is the recommended way of getting Starting from the [example][plugin:example] is the recommended way of getting
started with the plugin. started with the plugin.
[plugin:example]: https://github.com/keyboardio/Akela-LED-Stalker/blob/master/examples/LED-Stalker/LED-Stalker.ino [plugin:example]: https://github.com/keyboardio/Kaleidoscope-LED-Stalker/blob/master/examples/LED-Stalker/LED-Stalker.ino

@ -1,5 +1,5 @@
/* -*- mode: c++ -*- /* -*- mode: c++ -*-
* Akela -- Animated Keyboardio Extension Library for Anything * Kaleidoscope-LED-Stalker -- Stalk keys pressed by lighting up and fading back the LED under them
* Copyright (C) 2017 Gergely Nagy * Copyright (C) 2017 Gergely Nagy
* *
* This program is free software: you can redistribute it and/or modify * 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/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <Akela-LED-Stalker.h> #include <Kaleidoscope.h>
#include <Kaleidoscope-LED-Stalker.h>
const Key keymaps[][ROWS][COLS] PROGMEM = { const Key keymaps[][ROWS][COLS] PROGMEM = {
[0] = KEYMAP_STACKED [0] = KEYMAP_STACKED
@ -40,12 +41,12 @@ const Key keymaps[][ROWS][COLS] PROGMEM = {
}; };
void setup () { void setup () {
Keyboardio.setup (KEYMAP_SIZE); Kaleidoscope.setup (KEYMAP_SIZE);
StalkerEffect.configure (STALKER (BlazingTrail, NULL)); StalkerEffect.configure (STALKER (BlazingTrail, NULL));
Keyboardio.use (&LEDControl, &StalkerEffect, NULL); Kaleidoscope.use (&LEDControl, &StalkerEffect, NULL);
} }
void loop () { void loop () {
Keyboardio.loop (); Kaleidoscope.loop ();
} }

@ -1,10 +1,10 @@
name=Akela-LED-Stalker name=Kaleidoscope-LED-Stalker
version=0.0.0 version=0.0.0
author=Gergely Nagy author=Gergely Nagy
maintainer=Gergely Nagy <akela@gergo.csillger.hu> maintainer=Gergely Nagy <akela@gergo.csillger.hu>
sentence=Stalk keys pressed by lighting up and fading back the LED under them. sentence=Stalk keys pressed by lighting up and fading back the LED under them.
paragraph=Stalk keys pressed by lighting up and fading back the LED under them. paragraph=Stalk keys pressed by lighting up and fading back the LED under them.
category=Communication category=Communication
url=https://github.com/keyboardio/Akela-LED-Stalker url=https://github.com/keyboardio/Kaleidoscope-LED-Stalker
architectures=avr architectures=avr
dot_a_linkage=true dot_a_linkage=true

@ -1,5 +1,5 @@
/* -*- mode: c++ -*- /* -*- mode: c++ -*-
* Akela -- Animated Keyboardio Extension Library for Anything * Kaleidoscope-LED-Stalker -- Stalk keys pressed by lighting up and fading back the LED under them
* Copyright (C) 2017 Gergely Nagy * Copyright (C) 2017 Gergely Nagy
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
@ -18,4 +18,4 @@
#pragma once #pragma once
#include <Akela/LED-Stalker.h> #include <Kaleidoscope/LED-Stalker.h>

@ -1,5 +1,5 @@
/* -*- mode: c++ -*- /* -*- mode: c++ -*-
* Akela -- Animated Keyboardio Extension Library for Anything * Kaleidoscope-LED-Stalker -- Stalk keys pressed by lighting up and fading back the LED under them
* Copyright (C) 2017 Gergely Nagy * Copyright (C) 2017 Gergely Nagy
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
@ -16,9 +16,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <Akela-LED-Stalker.h> #include <Kaleidoscope-LED-Stalker.h>
namespace Akela { namespace KaleidoscopePlugins {
namespace LEDEffects { namespace LEDEffects {
uint8_t StalkerEffect::map[ROWS][COLS]; uint8_t StalkerEffect::map[ROWS][COLS];
StalkerEffect::ColorComputer *StalkerEffect::colorComputer; StalkerEffect::ColorComputer *StalkerEffect::colorComputer;
@ -136,4 +136,4 @@ namespace Akela {
}; };
}; };
Akela::LEDEffects::StalkerEffect StalkerEffect; KaleidoscopePlugins::LEDEffects::StalkerEffect StalkerEffect;

@ -1,5 +1,5 @@
/* -*- mode: c++ -*- /* -*- mode: c++ -*-
* Akela -- Animated Keyboardio Extension Library for Anything * Kaleidoscope-LED-Stalker -- Stalk keys pressed by lighting up and fading back the LED under them
* Copyright (C) 2017 Gergely Nagy * Copyright (C) 2017 Gergely Nagy
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
@ -16,14 +16,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <Akela-Core.h> #include <Kaleidoscope.h>
#include <Keyboardio-LEDControl.h> #include <Kaleidoscope-LEDControl.h>
#define STALKER(n, ...) (({static Akela::LEDEffects::Stalker::n _effect (__VA_ARGS__); &_effect;})) #define STALKER(n, ...) (({static KaleidoscopePlugins::LEDEffects::Stalker::n _effect (__VA_ARGS__); &_effect;}))
namespace Akela { namespace KaleidoscopePlugins {
namespace LEDEffects { namespace LEDEffects {
class StalkerEffect : public KeyboardioPlugin { class StalkerEffect : public KaleidoscopePlugin {
public: public:
class ColorComputer { class ColorComputer {
public: public:
@ -71,4 +71,4 @@ namespace Akela {
}; };
}; };
extern Akela::LEDEffects::StalkerEffect StalkerEffect; extern KaleidoscopePlugins::LEDEffects::StalkerEffect StalkerEffect;
Loading…
Cancel
Save