From 957e91d1418f37790bd0f5158192c79c29c055c6 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Mon, 26 Nov 2018 08:22:52 -0500 Subject: 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. --- Model01-Firmware.ino | 21 ++++++++++++++------- 1 file 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 #include #include -#include +#include +#include +#include #include #include @@ -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() { -- cgit v1.2.3