summaryrefslogtreecommitdiff
path: root/keyboards/cospad/keymaps/default
diff options
context:
space:
mode:
authorMechMerlin <30334081+mechmerlin@users.noreply.github.com>2018-07-05 10:43:15 -0700
committerDrashna Jaelre <drashna@live.com>2018-07-05 10:43:15 -0700
commit5953af32153a4813279c57396f6bebc798de2ae2 (patch)
tree3edabfa6254491f6ea3a1e5340267644ab0e9fc8 /keyboards/cospad/keymaps/default
parente36cbdc7869c122c4be1295471ae3b7a6107eab9 (diff)
Cospad QMK Configurator support and refactor (#3319)
* Refactor KEYMAP to LAYOUT standards - Change KEYMAP to LAYOUT_ortho - Added a new LAYOUT called LAYOUT_numpad * Use the new LAYOUT_numpad macro * Add QMK Configurator support * Change LAYOUT names as per code review * Change positioning of keys in the matrix * fix compile issue
Diffstat (limited to 'keyboards/cospad/keymaps/default')
-rw-r--r--keyboards/cospad/keymaps/default/keymap.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/keyboards/cospad/keymaps/default/keymap.c b/keyboards/cospad/keymaps/default/keymap.c
index 0e762c2e45..3cea2f8e63 100644
--- a/keyboards/cospad/keymaps/default/keymap.c
+++ b/keyboards/cospad/keymaps/default/keymap.c
@@ -1,4 +1,4 @@
-#include "cospad.h"
+#include QMK_KEYBOARD_H
#include "led.h"
#ifdef RGBLIGHT_ENABLE
@@ -31,13 +31,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* `-------------------'
*/
-[_BL] = KEYMAP(
+[_BL] = LAYOUT_numpad_6x4(
KC_ESC, KC_TAB, MO(_FL), KC_BSPC, \
KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, \
- KC_P7, KC_P8, KC_P9, KC_PPLS, \
- KC_P4, KC_P5, KC_P6, KC_NO, \
- KC_P1, KC_P2, KC_P3, KC_PENT, \
- KC_P0, KC_NO, KC_PDOT, KC_NO),
+ KC_P7, KC_P8, KC_P9, \
+ KC_P4, KC_P5, KC_P6, KC_PPLS, \
+ KC_P1, KC_P2, KC_P3, \
+ KC_P0, KC_PDOT, KC_PENT),
/* Keymap _FL: Function Layer
* ,-------------------.
@@ -54,13 +54,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* | 0 |RST | |
* `-------------------'
*/
-[_FL] = KEYMAP(
+[_FL] = LAYOUT_numpad_6x4(
RGB_TOG, KC_TAB, KC_TRNS, KC_BSPC, \
RGB_MOD, RGB_M_P, BL_TOGG, KC_PMNS, \
- RGB_HUD, RGB_HUI, BL_ON, KC_PPLS, \
- RGB_SAD, RGB_SAI, BL_OFF, KC_NO, \
- RGB_VAD, RGB_VAI, KC_P3, KC_PENT, \
- KC_P0, KC_NO, RESET, KC_NO),
+ RGB_HUD, RGB_HUI, BL_ON, \
+ RGB_SAD, RGB_SAI, BL_OFF, KC_PPLS, \
+ RGB_VAD, RGB_VAI, KC_P3, \
+ KC_P0, RESET, KC_PENT),
};