diff options
author | skullydazed <skullydazed@users.noreply.github.com> | 2017-09-06 14:49:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-06 14:49:19 -0700 |
commit | 4580d3a730c078484ea417575c617c17598b5a39 (patch) | |
tree | 6b180261bde6124a189b054a0657faa480e571c5 /quantum/quantum_keycodes.h | |
parent | 0ce45eb0b7ad0af28de4418906543c51dbc505cc (diff) | |
download | qmk_firmware-4580d3a730c078484ea417575c617c17598b5a39.tar.gz qmk_firmware-4580d3a730c078484ea417575c617c17598b5a39.zip |
RGB improvements (#1684)
* Allow the knight animation to be restricted to a portion of the LED strip
* Add keys for jumping directly to particular animation modes
* Remove orphaned break statements
* Tweak the `RGB_MODE` buttons so they cycle through the same mode.
* small indentation fix
Diffstat (limited to 'quantum/quantum_keycodes.h')
-rw-r--r-- | quantum/quantum_keycodes.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h index 1bb6706ba..ccd4565f5 100644 --- a/quantum/quantum_keycodes.h +++ b/quantum/quantum_keycodes.h | |||
@@ -401,6 +401,14 @@ enum quantum_keycodes { | |||
401 | RGB_SAD, | 401 | RGB_SAD, |
402 | RGB_VAI, | 402 | RGB_VAI, |
403 | RGB_VAD, | 403 | RGB_VAD, |
404 | RGB_MODE_PLAIN, | ||
405 | RGB_MODE_BREATHE, | ||
406 | RGB_MODE_RAINBOW, | ||
407 | RGB_MODE_SWIRL, | ||
408 | RGB_MODE_SNAKE, | ||
409 | RGB_MODE_KNIGHT, | ||
410 | RGB_MODE_XMAS, | ||
411 | RGB_MODE_GRADIENT, | ||
404 | 412 | ||
405 | // Left shift, open paren | 413 | // Left shift, open paren |
406 | KC_LSPO, | 414 | KC_LSPO, |
@@ -534,6 +542,14 @@ enum quantum_keycodes { | |||
534 | 542 | ||
535 | #define KC_GESC GRAVE_ESC | 543 | #define KC_GESC GRAVE_ESC |
536 | 544 | ||
545 | #define RGB_M_P RGB_MODE_PLAIN | ||
546 | #define RGB_M_B RGB_MODE_BREATHE | ||
547 | #define RGB_M_R RGB_MODE_RAINBOW | ||
548 | #define RGB_M_SW RGB_MODE_SWIRL | ||
549 | #define RGB_M_SN RGB_MODE_SNAKE | ||
550 | #define RGB_M_K RGB_MODE_KNIGHT | ||
551 | #define RGB_M_X RGB_MODE_XMAS | ||
552 | #define RGB_M_G RGB_MODE_GRADIENT | ||
537 | 553 | ||
538 | // L-ayer, T-ap - 256 keycode max, 16 layer max | 554 | // L-ayer, T-ap - 256 keycode max, 16 layer max |
539 | #define LT(layer, kc) (kc | QK_LAYER_TAP | ((layer & 0xF) << 8)) | 555 | #define LT(layer, kc) (kc | QK_LAYER_TAP | ((layer & 0xF) << 8)) |