diff options
| author | noroadsleft <18669334+noroadsleft@users.noreply.github.com> | 2018-06-01 08:56:39 -0700 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2018-06-01 08:56:39 -0700 |
| commit | 0aaff74b39554a4278997c13a25d60f9708ecd01 (patch) | |
| tree | f372413686ccd11aabb5c7c4b93068b02f14833d /keyboards/christmas_tree/keymaps | |
| parent | 7624a4e57e88ddd39dc884f98475df16a9fb1a7a (diff) | |
| download | qmk_firmware-0aaff74b39554a4278997c13a25d60f9708ecd01.tar.gz qmk_firmware-0aaff74b39554a4278997c13a25d60f9708ecd01.zip | |
Refactor and Configurator update for Christmas Tree (#3100)
* Refactor
* Configurator update
Diffstat (limited to 'keyboards/christmas_tree/keymaps')
| -rw-r--r-- | keyboards/christmas_tree/keymaps/default/keymap.c | 50 |
1 files changed, 29 insertions, 21 deletions
diff --git a/keyboards/christmas_tree/keymaps/default/keymap.c b/keyboards/christmas_tree/keymaps/default/keymap.c index 38da32628..7880fd625 100644 --- a/keyboards/christmas_tree/keymaps/default/keymap.c +++ b/keyboards/christmas_tree/keymaps/default/keymap.c | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include "christmas_tree.h" | 17 | #include QMK_KEYBOARD_H |
| 18 | 18 | ||
| 19 | extern keymap_config_t keymap_config; | 19 | extern keymap_config_t keymap_config; |
| 20 | 20 | ||
| @@ -32,27 +32,35 @@ enum custom_keycodes { | |||
| 32 | 32 | ||
| 33 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 33 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 34 | 34 | ||
| 35 | /* Base | 35 | /* Base |
| 36 | * ,------. | 36 | * ,------. |
| 37 | * | 1 | | 37 | * | 1 | |
| 38 | * ,------+------. | 38 | * ,------+------. |
| 39 | * | 2 | 3 | | 39 | * | 2 | 3 | |
| 40 | * ,------+------+------. | 40 | * ,------+------+------. |
| 41 | * | 4 | FUNC | 6 | | 41 | * | 4 | FUNC | 6 | |
| 42 | * `--------------------' | 42 | * `--------------------' |
| 43 | */ | 43 | */ |
| 44 | [_BASE] = KEYMAP(KC_1, KC_2, KC_3, KC_4, MO(_FUNC), KC_6), | 44 | [_BASE] = LAYOUT( |
| 45 | KC_1, | ||
| 46 | KC_2, KC_3, | ||
| 47 | KC_4, MO(_FUNC), KC_6 | ||
| 48 | ), | ||
| 45 | 49 | ||
| 46 | /* Func | 50 | /* Func |
| 47 | * ,------. | 51 | * ,------. |
| 48 | * |BCKLIT| | 52 | * |BCKLIT| |
| 49 | * ,------+------. | 53 | * ,------+------. |
| 50 | * | 8 | 9 | | 54 | * | 8 | 9 | |
| 51 | * ,------+------+------. | 55 | * ,------+------+------. |
| 52 | * | 0 | FUNC | RESET| | 56 | * | 0 | FUNC | RESET| |
| 53 | * `--------------------' | 57 | * `--------------------' |
| 54 | */ | 58 | */ |
| 55 | [_FUNC] = KEYMAP(BACKLIT, KC_8, KC_9, KC_0, _______, RESET) | 59 | [_FUNC] = LAYOUT( |
| 60 | BACKLIT, | ||
| 61 | KC_8, KC_9, | ||
| 62 | KC_0, _______, RESET | ||
| 63 | ) | ||
| 56 | 64 | ||
| 57 | 65 | ||
| 58 | }; | 66 | }; |
