From 5953af32153a4813279c57396f6bebc798de2ae2 Mon Sep 17 00:00:00 2001 From: MechMerlin <30334081+mechmerlin@users.noreply.github.com> Date: Thu, 5 Jul 2018 10:43:15 -0700 Subject: 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 --- keyboards/cospad/keymaps/default/keymap.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'keyboards/cospad/keymaps/default/keymap.c') 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), }; -- cgit v1.2.3