diff options
author | Daniel Shields <daniel.shields@bcs.org> | 2018-08-31 16:12:37 +0100 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-08-31 08:12:37 -0700 |
commit | f9eedd7ce741f15a1d5ff7327cb44d3979a46e35 (patch) | |
tree | 8e770d177b770aeb4b70410c4f4cba588440ed44 /keyboards/planck/keymaps/dshields/keymap.c | |
parent | 2cd80f84a416153cb17bc4543477be0d708e6f0f (diff) | |
download | qmk_firmware-f9eedd7ce741f15a1d5ff7327cb44d3979a46e35.tar.gz |
Keymap: Add backlight controls for Planck Light in dshields keymap (#3801)
Diffstat (limited to 'keyboards/planck/keymaps/dshields/keymap.c')
-rw-r--r-- | keyboards/planck/keymaps/dshields/keymap.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/keyboards/planck/keymaps/dshields/keymap.c b/keyboards/planck/keymaps/dshields/keymap.c index 86443d671..a39dc5e77 100644 --- a/keyboards/planck/keymaps/dshields/keymap.c +++ b/keyboards/planck/keymaps/dshields/keymap.c @@ -8,6 +8,14 @@ enum planck_keycodes { DYNAMIC_MACRO_RANGE = SAFE_RANGE }; #include "dynamic_macro.h" +#ifdef KEYBOARD_planck_light + #define LGT_TOG RGB_TOG + #define LGT_MOD RGB_MOD +#else + #define LGT_TOG BL_TOGG + #define LGT_MOD BL_STEP +#endif + const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { /* Default * ,-----------------------------------------------------------------------------------. @@ -74,7 +82,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [FUN] = LAYOUT_planck_grid( KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, RESET, KC_DEL, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10 , KC_F11, KC_F12, KC_F13, KC_F14, KC_F15, _______, _______, _______, KC_WH_L, KC_WH_D, KC_WH_U, KC_WH_R, - BL_TOGG, BL_STEP, _______, _______, _______, DM_STRT, DM_STOP, _______, _______, KC_BTN1, KC_BTN2, KC_BTN3, + LGT_TOG, LGT_MOD, _______, _______, _______, DM_STRT, DM_STOP, _______, _______, KC_BTN1, KC_BTN2, KC_BTN3, _______, _______, _______, _______, _______, _______, _______, _______, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R ) }; |