diff options
| author | Joel Challis <git@zvecr.com> | 2019-08-15 22:01:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-15 22:01:34 +0100 |
| commit | fadb69e2031a259248dd575384da8846ba0c2aa3 (patch) | |
| tree | d7e7d80b62db0044af127c69b8b90ea6d489b0cc /keyboards/lets_split_eh/keymaps/default/keymap.c | |
| parent | ee8d9bd40ad4f5b8d23be951d652143582d42938 (diff) | |
| download | qmk_firmware-fadb69e2031a259248dd575384da8846ba0c2aa3.tar.gz qmk_firmware-fadb69e2031a259248dd575384da8846ba0c2aa3.zip | |
Refactor of lets_split_eh to enable RGB split animations (#6411)
Diffstat (limited to 'keyboards/lets_split_eh/keymaps/default/keymap.c')
| -rw-r--r-- | keyboards/lets_split_eh/keymaps/default/keymap.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/keyboards/lets_split_eh/keymaps/default/keymap.c b/keyboards/lets_split_eh/keymaps/default/keymap.c index 1983459f6..fe5ca0c8c 100644 --- a/keyboards/lets_split_eh/keymaps/default/keymap.c +++ b/keyboards/lets_split_eh/keymaps/default/keymap.c | |||
| @@ -4,11 +4,13 @@ | |||
| 4 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | 4 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. |
| 5 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | 5 | // Layer names don't all need to be of the same length, obviously, and you can also skip them |
| 6 | // entirely and just use numbers. | 6 | // entirely and just use numbers. |
| 7 | #define _QWERTY 0 | 7 | enum layers { |
| 8 | #define _LOWER 3 | 8 | _QWERTY, |
| 9 | #define _RAISE 4 | 9 | _LOWER, |
| 10 | #define _FUNCTION 15 | 10 | _RAISE, |
| 11 | #define _ADJUST 16 | 11 | _FUNCTION, |
| 12 | _ADJUST, | ||
| 13 | }; | ||
| 12 | 14 | ||
| 13 | #define LOWER MO(_LOWER) | 15 | #define LOWER MO(_LOWER) |
| 14 | #define RAISE MO(_RAISE) | 16 | #define RAISE MO(_RAISE) |
| @@ -77,9 +79,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 77 | 79 | ||
| 78 | /* Adjust (Lower + Raise) | 80 | /* Adjust (Lower + Raise) |
| 79 | * ,-----------------------------------------------------------------------------------. | 81 | * ,-----------------------------------------------------------------------------------. |
| 80 | * |Taskmg| | | | | | | |RGBVAI|RGBSAI|RGBHUI|caltde| | 82 | * |Taskmg| | | | | | |RGBMOD|RGBVAI|RGBSAI|RGBHUI|caltde| |
| 81 | * |------+------+------+------+------+-------------+------+------+------+------+------| | 83 | * |------+------+------+------+------+-------------+------+------+------+------+------| |
| 82 | * | | | | | | | | |RGBVAD|RGBSAD|RGBHUD|RGBTOG| | 84 | * | | | | | | | |RGBRMO|RGBVAD|RGBSAD|RGBHUD|RGBTOG| |
| 83 | * |------+------+------+------+------+------|------+------+------+------+------+------| | 85 | * |------+------+------+------+------+------|------+------+------+------+------+------| |
| 84 | * | | | | | | | | | | | |BLSTEP| | 86 | * | | | | | | | | | | | |BLSTEP| |
| 85 | * |------+------+------+------+------+------+------+------+------+------+------+------| | 87 | * |------+------+------+------+------+------+------+------+------+------+------+------| |
| @@ -87,8 +89,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 87 | * `-----------------------------------------------------------------------------------' | 89 | * `-----------------------------------------------------------------------------------' |
| 88 | */ | 90 | */ |
| 89 | [_ADJUST] = LAYOUT( \ | 91 | [_ADJUST] = LAYOUT( \ |
| 90 | TSKMGR, _______, _______, _______, _______, _______, _______, _______, RGB_VAI, RGB_SAI, RGB_HUI, CALTDEL, \ | 92 | TSKMGR, _______, _______, _______, _______, _______, _______, RGB_MOD, RGB_VAI, RGB_SAI, RGB_HUI, CALTDEL, \ |
| 91 | _______, _______, _______, _______, _______, _______, _______, _______, RGB_VAD, RGB_SAD, RGB_HUD, RGB_TOG, \ | 93 | _______, _______, _______, _______, _______, _______, _______, RGB_RMOD,RGB_VAD, RGB_SAD, RGB_HUD, RGB_TOG, \ |
| 92 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, BL_STEP, \ | 94 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, BL_STEP, \ |
| 93 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET \ | 95 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET \ |
| 94 | ), | 96 | ), |
| @@ -116,7 +118,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 116 | uint32_t layer_state_set_user(uint32_t state) { | 118 | uint32_t layer_state_set_user(uint32_t state) { |
| 117 | return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); | 119 | return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); |
| 118 | } | 120 | } |
| 119 | |||
| 120 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 121 | return true; | ||
| 122 | } | ||
