aboutsummaryrefslogtreecommitdiffstats
path: root/Model01-Firmware.ino
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2018-11-26 08:22:52 -0500
committerBrian Cully <bjc@kublai.com>2018-11-26 08:22:52 -0500
commit957e91d1418f37790bd0f5158192c79c29c055c6 (patch)
tree1c444a094a5086a94a57de7414b071f5d6a8e94e /Model01-Firmware.ino
parentb2cac8d80e8bf69878cb0d4e66fd5ba3d6e600d7 (diff)
downloadModel01-Firmware-957e91d1418f37790bd0f5158192c79c29c055c6.tar.gz
Model01-Firmware-957e91d1418f37790bd0f5158192c79c29c055c6.zip
Add boot greating, breathe, and idle leds.
* Turn off LEDs after 5 minutes. * Breathe a nice purple. * I miss the boot animation. * Put PgUp/Dn back on the keyboard, since I haven't been using macros.
Diffstat (limited to 'Model01-Firmware.ino')
-rw-r--r--Model01-Firmware.ino21
1 files changed, 14 insertions, 7 deletions
diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino
index 24308f7..5763269 100644
--- a/Model01-Firmware.ino
+++ b/Model01-Firmware.ino
@@ -21,7 +21,9 @@
#include <Kaleidoscope-Qukeys.h>
#include <Kaleidoscope-MacrosOnTheFly.h>
#include <Kaleidoscope-LEDEffect-DigitalRain.h>
-#include <Kaleidoscope-LED-Wavepool.h>
+#include <Kaleidoscope-LEDEffect-BootGreeting.h>
+#include <Kaleidoscope-LEDEffect-Breathe.h>
+#include <Kaleidoscope-IdleLEDs.h>
#include <Kaleidoscope-LayerHighlighter.h>
#include <Kaleidoscope-Heatmap.h>
@@ -68,8 +70,8 @@ KEYMAPS(
[PRIMARY] = KEYMAP_STACKED
(Key_Escape, Key_1, Key_2, Key_3, Key_4, Key_5, Key_LEDEffectNext,
Key_Backtick, Key_Quote, Key_Comma, Key_Period, Key_P, Key_Y, Key_Tab,
- Key_MacroRec, Key_A, Key_O, Key_E, Key_U, Key_I,
- Key_MacroPlay, Key_Semicolon, Key_Q, Key_J, Key_K, Key_X, Key_LeftGui,
+ 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),
ShiftToLayer(FUNCTION),
@@ -245,7 +247,7 @@ USE_MAGIC_COMBOS({.action = toggleKeyboardProtocol,
.keys = { R3C6, R2C6, R3C7 }
});
-LayerHighlighter emoteHighlighter(EMOTES);
+static LayerHighlighter emoteHighlighter(EMOTES);
// First, tell Kaleidoscope which plugins you want to use.
// The order can be important. For example, LED effects are
@@ -254,13 +256,14 @@ KALEIDOSCOPE_INIT_PLUGINS(EEPROMSettings,
HostOS,
Unicode,
Qukeys,
- MacrosOnTheFly,
+ //MacrosOnTheFly,
Syster,
// LEDControl provides support for other LED
// modes
LEDControl,
- WavepoolEffect,
- LEDDigitalRainEffect,
+ BootGreetingEffect,
+ IdleLEDs,
+ LEDBreatheEffect,
HeatmapEffect,
// The numpad plugin is responsible for
@@ -307,6 +310,7 @@ void setup() {
emoteHighlighter.lockHue = 100;
emoteHighlighter.color = CRGB(255, 255, 0);
+ LEDBreatheEffect.hue = 212;
QUKEYS(kaleidoscope::Qukey(0, 3, 7, Key_LeftShift),
kaleidoscope::Qukey(0, 3, 8, Key_RightShift),
@@ -317,6 +321,9 @@ void setup() {
kaleidoscope::Qukey(0, 2, 9, Key_RightGui));
Qukeys.setTimeout(200);
Qukeys.setReleaseDelay(20);
+
+ // Turn off LEDs when keyboard is idle for 300 seconds.
+ IdleLEDs.idle_time_limit = 300;
}
void loop() {