|
|
@ -17,26 +17,27 @@
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include <Akela-GhostInTheFirmware.h>
|
|
|
|
#include <Akela-GhostInTheFirmware.h>
|
|
|
|
|
|
|
|
#include <Akela-LED-Stalker.h>
|
|
|
|
#include <Keyboardio-Macros.h>
|
|
|
|
#include <Keyboardio-Macros.h>
|
|
|
|
|
|
|
|
|
|
|
|
const Key keymaps[][ROWS][COLS] PROGMEM = {
|
|
|
|
const Key keymaps[][ROWS][COLS] PROGMEM = {
|
|
|
|
[0] = KEYMAP_STACKED
|
|
|
|
[0] = KEYMAP_STACKED
|
|
|
|
(
|
|
|
|
(
|
|
|
|
Key_LEDEffectNext, Key_1, Key_2, Key_3, Key_4, Key_5, M(0),
|
|
|
|
Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey, M(0),
|
|
|
|
Key_Backtick, Key_Q, Key_W, Key_E, Key_R, Key_T, Key_Tab,
|
|
|
|
Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey,
|
|
|
|
Key_PageUp, Key_A, Key_S, Key_D, Key_F, Key_G,
|
|
|
|
Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey,
|
|
|
|
Key_PageDn, Key_Z, Key_X, Key_C, Key_V, Key_B, Key_Esc,
|
|
|
|
Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey,
|
|
|
|
|
|
|
|
|
|
|
|
Key_LCtrl, Key_Backspace, Key_LGUI, Key_LShift,
|
|
|
|
Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey,
|
|
|
|
Key_skip,
|
|
|
|
Key_NoKey,
|
|
|
|
|
|
|
|
|
|
|
|
Key_skip, Key_6, Key_7, Key_8, Key_9, Key_0, Key_skip,
|
|
|
|
Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey,
|
|
|
|
Key_Enter, Key_Y, Key_U, Key_I, Key_O, Key_P, Key_Equals,
|
|
|
|
Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey,
|
|
|
|
Key_H, Key_J, Key_K, Key_L, Key_Semicolon, Key_Quote,
|
|
|
|
Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey,
|
|
|
|
Key_skip, Key_N, Key_M, Key_Comma, Key_Period, Key_Slash, Key_Minus,
|
|
|
|
Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey,
|
|
|
|
|
|
|
|
|
|
|
|
Key_RShift, Key_RAlt, Key_Space, Key_RCtrl,
|
|
|
|
Key_NoKey, Key_NoKey, Key_NoKey, Key_NoKey,
|
|
|
|
Key_skip
|
|
|
|
Key_NoKey
|
|
|
|
),
|
|
|
|
),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -48,7 +49,71 @@ const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static const Akela::GhostInTheFirmware::GhostKey ghostKeys[] PROGMEM = {
|
|
|
|
static const Akela::GhostInTheFirmware::GhostKey ghostKeys[] PROGMEM = {
|
|
|
|
{0, 0, 10},
|
|
|
|
{0, 6, 5},
|
|
|
|
|
|
|
|
{0, 5, 5},
|
|
|
|
|
|
|
|
{0, 4, 5},
|
|
|
|
|
|
|
|
{0, 3, 5},
|
|
|
|
|
|
|
|
{0, 2, 5},
|
|
|
|
|
|
|
|
{0, 1, 5},
|
|
|
|
|
|
|
|
{0, 0, 5},
|
|
|
|
|
|
|
|
{1, 0, 5},
|
|
|
|
|
|
|
|
{1, 1, 5},
|
|
|
|
|
|
|
|
{1, 2, 5},
|
|
|
|
|
|
|
|
{1, 3, 5},
|
|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5},
|
|
|
|
|
|
|
|
{1, 10, 5},
|
|
|
|
|
|
|
|
{1, 11, 5},
|
|
|
|
|
|
|
|
{1, 12, 5},
|
|
|
|
|
|
|
|
{1, 13, 5},
|
|
|
|
|
|
|
|
{1, 14, 5},
|
|
|
|
|
|
|
|
{1, 15, 5},
|
|
|
|
|
|
|
|
{0, 15, 5},
|
|
|
|
|
|
|
|
{0, 14, 5},
|
|
|
|
|
|
|
|
{0, 13, 5},
|
|
|
|
|
|
|
|
{0, 12, 5},
|
|
|
|
|
|
|
|
{0, 11, 5},
|
|
|
|
|
|
|
|
{0, 10, 5},
|
|
|
|
|
|
|
|
{0, 9, 5},
|
|
|
|
|
|
|
|
|
|
|
|
{0, 0, 0}
|
|
|
|
{0, 0, 0}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -56,7 +121,10 @@ void setup () {
|
|
|
|
Keyboardio.setup (KEYMAP_SIZE);
|
|
|
|
Keyboardio.setup (KEYMAP_SIZE);
|
|
|
|
|
|
|
|
|
|
|
|
GhostInTheFirmware.configure (ghostKeys);
|
|
|
|
GhostInTheFirmware.configure (ghostKeys);
|
|
|
|
Keyboardio.use (&GhostInTheFirmware, &Macros, NULL);
|
|
|
|
StalkerEffect.configure (STALKER (BlazingTrail, NULL));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Keyboardio.use (&GhostInTheFirmware, &StalkerEffect, &Macros, NULL);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void loop () {
|
|
|
|
void loop () {
|
|
|
|