The Big Rename

Rename the library to Kaleidoscope-Cycle, and follow up with other renames, too.

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

@ -1,4 +1,4 @@
# Akela-Cycle
# Kaleidoscope-Cycle
![status][st:stable]
@ -24,7 +24,7 @@ each time the cycling key triggers.
[cycleaction]: #cycleactionpreviouskey-cyclecount
```c++
#include <Akela-Cycle.h>
#include <Kaleidoscope-Cycle.h>
// Somewhere in the keymap:
Key_Cycle
@ -37,9 +37,9 @@ void cycleAction (Key previousKey, uint8_t cycleCount) {
}
void setup (void) {
Keyboardio.setup (KEYMAP_SIZE);
Kaleidoscope.setup (KEYMAP_SIZE);
Keyboardio.use (&Cycle, NULL);
Kaleidoscope.use (&Cycle, NULL);
}
```
@ -96,4 +96,4 @@ method explained below.
Starting from the [example][plugin:example] is the recommended way of getting
started with the plugin.
[plugin:example]: https://github.com/keyboardio/Akela-Cycle/blob/master/examples/Cycle/Cycle.ino
[plugin:example]: https://github.com/keyboardio/Kaleidoscope-Cycle/blob/master/examples/Cycle/Cycle.ino

@ -1,5 +1,5 @@
/* -*- mode: c++ -*-
* Akela -- Animated Keyboardio Extension Library for Anything
* Kaleidoscope-Cycle -- Key sequence cycling dead key for Kaleidoscope.
* 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-Cycle.h>
#include <Kaleidoscope.h>
#include <Kaleidoscope-Cycle.h>
const Key keymaps[][ROWS][COLS] PROGMEM = {
[0] = KEYMAP_STACKED
@ -53,11 +54,11 @@ void cycleAction (Key previousKey, uint8_t cycleCount) {
}
void setup () {
Keyboardio.setup (KEYMAP_SIZE);
Kaleidoscope.setup (KEYMAP_SIZE);
Keyboardio.use (&Cycle, NULL);
Kaleidoscope.use (&Cycle, NULL);
}
void loop () {
Keyboardio.loop ();
Kaleidoscope.loop ();
}

@ -1,10 +1,10 @@
name=Akela-Cycle
name=Kaleidoscope-Cycle
version=0.0.0
author=Gergely Nagy
maintainer=Gergely Nagy <akela@gergo.csillger.hu>
sentence=Key sequence cycling dead key.
paragraph=Key sequence cycling dead key.
maintainer=Gergely Nagy <kaleidoscope@gergo.csillger.hu>
sentence=Key sequence cycling dead key for Kaleidoscope.
paragraph=Key sequence cycling dead key for Kaleidoscope.
category=Communication
url=https://github.com/keyboardio/Akela-Cycle
url=https://github.com/keyboardio/Kaleidoscope-Cycle
architectures=avr
dot_a_linkage=true

@ -1,5 +1,5 @@
/* -*- mode: c++ -*-
* Akela -- Animated Keyboardio Extension Library for Anything
* Kaleidoscope-Cycle -- Key sequence cycling dead key for Kaleidoscope.
* 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/Cycle.h>
#include <Kaleidoscope/Cycle.h>

@ -1,5 +1,5 @@
/* -*- mode: c++ -*-
* Akela -- Animated Keyboardio Extension Library for Anything
* Kaleidoscope-Cycle -- Key sequence cycling dead key for Kaleidoscope.
* Copyright (C) 2016, 2017 Gergely Nagy
*
* This program is free software: you can redistribute it and/or modify
@ -16,11 +16,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <Akela-Cycle.h>
#include <Kaleidoscope.h>
#include <Kaleidoscope-Cycle.h>
using namespace Akela::Ranges;
using namespace KaleidoscopePlugins::Ranges;
namespace Akela {
namespace KaleidoscopePlugins {
// --- state ---
Key Cycle::lastNonCycleKey;
uint8_t Cycle::cycleCount;
@ -96,4 +97,4 @@ void
cycleAction (Key previousKey, uint8_t cycleCount) {
}
Akela::Cycle Cycle;
KaleidoscopePlugins::Cycle Cycle;

@ -1,5 +1,5 @@
/* -*- mode: c++ -*-
* Akela -- Animated Keyboardio Extension Library for Anything
* Kaleidoscope-Cycle -- Key sequence cycling dead key for Kaleidoscope.
* Copyright (C) 2016, 2017 Gergely Nagy
*
* This program is free software: you can redistribute it and/or modify
@ -18,17 +18,17 @@
#pragma once
#include <Akela-Core.h>
#include <Kaleidoscope-Ranges.h>
#define Key_Cycle (Key){ .raw = Akela::Ranges::CYCLE }
#define Key_Cycle (Key){ .raw = KaleidoscopePlugins::Ranges::CYCLE }
#define cycleThrough(...) ({ \
static const Key __k[] PROGMEM = { __VA_ARGS__ }; \
Cycle.replace (sizeof (__k) / sizeof (Key), &__k[0]); \
})
namespace Akela {
class Cycle : public KeyboardioPlugin {
namespace KaleidoscopePlugins {
class Cycle : public KaleidoscopePlugin {
public:
Cycle (void);
@ -47,4 +47,4 @@ namespace Akela {
void cycleAction (Key previousKey, uint8_t cycleCount);
extern Akela::Cycle Cycle;
extern KaleidoscopePlugins::Cycle Cycle;
Loading…
Cancel
Save