aboutsummaryrefslogtreecommitdiffstats
path: root/Model01-Firmware.ino
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2019-04-07 23:09:54 -0400
committerBrian Cully <bjc@kublai.com>2019-04-07 23:09:54 -0400
commit51ea94448e60795634448c58f9d6af63837c8aee (patch)
tree7d26a8fd7084f4468ef15491d245674a5fdb578b /Model01-Firmware.ino
parentb4559fbbe1e0dbba522c59e32119dca7fc8bdf79 (diff)
downloadModel01-Firmware-51ea94448e60795634448c58f9d6af63837c8aee.tar.gz
Model01-Firmware-51ea94448e60795634448c58f9d6af63837c8aee.zip
Switch to SpaceCadet from QuKeys. Update plugin namespaces.
Diffstat (limited to 'Model01-Firmware.ino')
-rw-r--r--Model01-Firmware.ino32
1 files changed, 17 insertions, 15 deletions
diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino
index acb6805..fb9239d 100644
--- a/Model01-Firmware.ino
+++ b/Model01-Firmware.ino
@@ -18,13 +18,12 @@
#include <Kaleidoscope-Syster.h>
#include <Kaleidoscope-Unicode.h>
#include <kaleidoscope/hid.h>
-#include <Kaleidoscope-Qukeys.h>
#include <Kaleidoscope-MacrosOnTheFly.h>
-#include <Kaleidoscope-LEDEffect-DigitalRain.h>
#include <Kaleidoscope-LEDEffect-BootGreeting.h>
#include <Kaleidoscope-LEDEffect-Breathe.h>
#include <Kaleidoscope-IdleLEDs.h>
#include <Kaleidoscope-LayerHighlighter.h>
+#include <Kaleidoscope-SpaceCadet.h>
#include <Kaleidoscope-Heatmap.h>
enum { MACRO_VERSION_INFO,
@@ -75,14 +74,16 @@ KEYMAPS(
Key_Backtick, Key_Quote, Key_Comma, Key_Period, Key_P, Key_Y, Key_Tab,
Key_PageUp, Key_A, Key_O, Key_E, Key_U, Key_I,
Key_PageDown, Key_Semicolon, Key_Q, Key_J, Key_K, Key_X, Key_LeftGui,
- Key_LeftBracket, Key_Backspace, LSHIFT(Key_LeftBracket), LSHIFT(Key_9),
+ //Key_LeftBracket, Key_Backspace, LSHIFT(Key_LeftBracket), LSHIFT(Key_9),
+ Key_LeftControl, Key_Backspace, Key_LeftAlt, Key_LeftShift,
ShiftToLayer(FUNCTION),
LockLayer(EMOTES), Key_6, Key_7, Key_8, Key_9, Key_0, LockLayer(NUMPAD),
Key_Enter, Key_F, Key_G, Key_C, Key_R, Key_L, Key_Slash,
Key_D, Key_H, Key_T, Key_N, Key_S, Key_Minus,
SYSTER, Key_B, Key_M, Key_W, Key_V, Key_Z, Key_Equals,
- LSHIFT(Key_0), LSHIFT(Key_RightBracket), Key_Spacebar, Key_RightBracket,
+ //LSHIFT(Key_0), LSHIFT(Key_RightBracket), Key_Spacebar, Key_RightBracket,
+ Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl,
ShiftToLayer(FUNCTION)),
[FUNCTION] = KEYMAP_STACKED
@@ -258,7 +259,7 @@ static LayerHighlighter emoteHighlighter(EMOTES);
KALEIDOSCOPE_INIT_PLUGINS(EEPROMSettings,
HostOS,
Unicode,
- Qukeys,
+ SpaceCadet,
//MacrosOnTheFly,
Syster,
// LEDControl provides support for other LED
@@ -302,7 +303,7 @@ void setup() {
Serial.begin(9600);
// Necessary for FreeBSD, as it doesn't support NKRO.
- BootKeyboard.default_protocol = HID_BOOT_PROTOCOL;
+ //BootKeyboard.default_protocol = HID_BOOT_PROTOCOL;
// First, call Kaleidoscope's internal setup function
Kaleidoscope.setup();
@@ -315,15 +316,16 @@ void setup() {
emoteHighlighter.color = CRGB(255, 255, 0);
LEDBreatheEffect.hue = 212;
- QUKEYS(kaleidoscope::Qukey(0, 3, 7, Key_LeftShift),
- kaleidoscope::Qukey(0, 3, 8, Key_RightShift),
- kaleidoscope::Qukey(0, 0, 7, Key_LeftControl),
- kaleidoscope::Qukey(0, 0, 8, Key_RightControl),
- kaleidoscope::Qukey(0, 2, 7, Key_LeftAlt),
- kaleidoscope::Qukey(0, 2, 8, Key_RightAlt),
- kaleidoscope::Qukey(0, 2, 9, Key_RightGui));
- Qukeys.setTimeout(200);
- Qukeys.setReleaseDelay(20);
+ static kaleidoscope::plugin::SpaceCadet::KeyBinding spaceCadetMap[] = {
+ {Key_LeftControl, Key_LeftBracket, 250},
+ {Key_RightControl, Key_RightBracket, 250},
+ {Key_LeftAlt, Key_LeftCurlyBracket, 250},
+ {Key_RightAlt, Key_RightCurlyBracket, 250},
+ {Key_LeftShift, Key_LeftParen, 250},
+ {Key_RightShift, Key_RightParen, 250},
+ SPACECADET_MAP_END
+ };
+ SpaceCadet.map = spaceCadetMap;
// Turn off LEDs when keyboard is idle for 300 seconds.
IdleLEDs.idle_time_limit = 300;