diff --git a/README.md b/README.md index 0e18152a..52ed6e7d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Akela-GhostInTheFirmware +# Kaleidoscope-GhostInTheFirmware ![status][st:experimental] @@ -24,8 +24,9 @@ way to trigger starting the sequence, and a macro is the most convenient way for that. ```c++ -#include -#include +#include +#include +#include const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) { if (macroIndex == 0 && key_toggled_on (keyState)) @@ -34,16 +35,16 @@ const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) { return MACRO_NONE; } -static const Akela::GhostInTheFirmware::GhostKey ghostKeys[] PROGMEM = { +static const KaleidoscopePlugins::GhostInTheFirmware::GhostKey ghostKeys[] PROGMEM = { {0, 0, 200, 50}, {0, 0, 0} }; void setup () { - Keyboardio.setup (KEYMAP_SIZE); + Kaleidoscope.setup (KEYMAP_SIZE); GhostInTheFirmware.configure (ghostKeys); - Keyboardio.use (&GhostInTheFirmware, &Macros, NULL); + Kaleidoscope.use (&GhostInTheFirmware, &Macros, NULL); } ``` @@ -76,4 +77,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-GhostInTheFirmware/blob/master/examples/GhostInTheFirmware/GhostInTheFirmware.ino + [plugin:example]: https://github.com/keyboardio/Kaleidoscope-GhostInTheFirmware/blob/master/examples/GhostInTheFirmware/GhostInTheFirmware.ino diff --git a/examples/GhostInTheFirmware/GhostInTheFirmware.ino b/examples/GhostInTheFirmware/GhostInTheFirmware.ino index d434abed..8fd67dae 100644 --- a/examples/GhostInTheFirmware/GhostInTheFirmware.ino +++ b/examples/GhostInTheFirmware/GhostInTheFirmware.ino @@ -1,5 +1,5 @@ /* -*- mode: c++ -*- - * Akela -- Animated Keyboardio Extension Library for Anything + * Kaleidoscope-GhostInTheFirmware -- Let the keyboard write for you! * Copyright (C) 2017 Gergely Nagy * * This program is free software: you can redistribute it and/or modify @@ -16,10 +16,11 @@ * along with this program. If not, see . */ -#include -#include -#include -#include +#include +#include +#include +#include +#include const Key keymaps[][ROWS][COLS] PROGMEM = { [0] = KEYMAP_STACKED @@ -53,7 +54,7 @@ const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) { return MACRO_NONE; } -static const Akela::GhostInTheFirmware::GhostKey ghostKeys[] PROGMEM = { +static const KaleidoscopePlugins::GhostInTheFirmware::GhostKey ghostKeys[] PROGMEM = { {0, 6, 200, 50}, {0, 5, 200, 50}, {0, 4, 200, 50}, @@ -125,16 +126,16 @@ static const Akela::GhostInTheFirmware::GhostKey ghostKeys[] PROGMEM = { void setup () { Serial.begin (9600); - Keyboardio.setup (KEYMAP_SIZE); + Kaleidoscope.setup (KEYMAP_SIZE); GhostInTheFirmware.configure (ghostKeys); StalkerEffect.configure (STALKER (BlazingTrail, NULL)); - Keyboardio.use (&LEDControl, &GhostInTheFirmware, &StalkerEffect, &Macros, - NULL); + Kaleidoscope.use (&LEDControl, &GhostInTheFirmware, &StalkerEffect, &Macros, + NULL); event_handler_hook_use (eventDropper); } void loop () { - Keyboardio.loop (); + Kaleidoscope.loop (); } diff --git a/library.properties b/library.properties index 5865c726..915ada5a 100644 --- a/library.properties +++ b/library.properties @@ -1,10 +1,10 @@ -name=Akela-GhostInTheFirmware +name=Kaleidoscope-GhostInTheFirmware version=0.0.0 author=Gergely Nagy -maintainer=Gergely Nagy +maintainer=Gergely Nagy sentence=Let the keyboard write for you! paragraph=A slight variation of Macros, mostly for demo purposes. category=Communication -url=https://github.com/keyboardio/Akela-GhostInTheFirmware +url=https://github.com/keyboardio/Kaleidoscope-GhostInTheFirmware architectures=avr dot_a_linkage=true diff --git a/src/Akela-GhostInTheFirmware.h b/src/Kaleidoscope-GhostInTheFirmware.h similarity index 86% rename from src/Akela-GhostInTheFirmware.h rename to src/Kaleidoscope-GhostInTheFirmware.h index 0f7771b4..4d299418 100644 --- a/src/Akela-GhostInTheFirmware.h +++ b/src/Kaleidoscope-GhostInTheFirmware.h @@ -1,5 +1,5 @@ /* -*- mode: c++ -*- - * Akela -- Animated Keyboardio Extension Library for Anything + * Kaleidoscope-GhostInTheFirmware -- Let the keyboard write for you! * Copyright (C) 2017 Gergely Nagy * * This program is free software: you can redistribute it and/or modify @@ -18,4 +18,4 @@ #pragma once -#include +#include diff --git a/src/Akela/GhostInTheFirmware.cpp b/src/Kaleidoscope/GhostInTheFirmware.cpp similarity index 91% rename from src/Akela/GhostInTheFirmware.cpp rename to src/Kaleidoscope/GhostInTheFirmware.cpp index 67194fc9..c44cafaa 100644 --- a/src/Akela/GhostInTheFirmware.cpp +++ b/src/Kaleidoscope/GhostInTheFirmware.cpp @@ -1,5 +1,5 @@ /* -*- mode: c++ -*- - * Akela -- Animated Keyboardio Extension Library for Anything + * Kaleidoscope-GhostInTheFirmware -- Let the keyboard write for you! * Copyright (C) 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 . */ -#include +#include +#include -namespace Akela { +namespace KaleidoscopePlugins { GhostInTheFirmware::GhostKey *GhostInTheFirmware::ghostKeys; bool GhostInTheFirmware::isActive; bool GhostInTheFirmware::isPressed; @@ -84,4 +85,4 @@ namespace Akela { }; -Akela::GhostInTheFirmware GhostInTheFirmware; +KaleidoscopePlugins::GhostInTheFirmware GhostInTheFirmware; diff --git a/src/Akela/GhostInTheFirmware.h b/src/Kaleidoscope/GhostInTheFirmware.h similarity index 83% rename from src/Akela/GhostInTheFirmware.h rename to src/Kaleidoscope/GhostInTheFirmware.h index 919ebf2d..36c932a7 100644 --- a/src/Akela/GhostInTheFirmware.h +++ b/src/Kaleidoscope/GhostInTheFirmware.h @@ -1,5 +1,5 @@ /* -*- mode: c++ -*- - * Akela -- Animated Keyboardio Extension Library for Anything + * Kaleidoscope-GhostInTheFirmware -- Let the keyboard write for you! * Copyright (C) 2017 Gergely Nagy * * This program is free software: you can redistribute it and/or modify @@ -18,10 +18,10 @@ #pragma once -#include +#include -namespace Akela { - class GhostInTheFirmware : public KeyboardioPlugin { +namespace KaleidoscopePlugins { + class GhostInTheFirmware : public KaleidoscopePlugin { public: typedef struct { byte row; @@ -50,4 +50,4 @@ namespace Akela { }; -extern Akela::GhostInTheFirmware GhostInTheFirmware; +extern KaleidoscopePlugins::GhostInTheFirmware GhostInTheFirmware;