summaryrefslogtreecommitdiffstats
path: root/keyboards/ymdk_np21/keymaps
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2018-10-01 17:09:57 +0200
committerJack Humbert <jack.humb@gmail.com>2018-10-01 17:09:57 +0200
commit3907ed034bec6730d8bff401ac632161540ea3cb (patch)
tree345edb48870809e447ac308375d9427892864c88 /keyboards/ymdk_np21/keymaps
parent9d949389f92b6b397ed62246b60ead86d80a57a1 (diff)
downloadqmk_firmware-3907ed034bec6730d8bff401ac632161540ea3cb.tar.gz
qmk_firmware-3907ed034bec6730d8bff401ac632161540ea3cb.tar.xz
Fix YMDK NP21 keyboard to use proper keyboard level functions (#3042)
* Use proper function levels * Add matrix init functions * Convert KEYMAP to LAYOUT Or @mechmerlin is going to hunt me down and harm me... probably :) * Fix conflict issues
Diffstat (limited to 'keyboards/ymdk_np21/keymaps')
-rw-r--r--keyboards/ymdk_np21/keymaps/default/keymap.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/keyboards/ymdk_np21/keymaps/default/keymap.c b/keyboards/ymdk_np21/keymaps/default/keymap.c
index e79d326b7..3ade30479 100644
--- a/keyboards/ymdk_np21/keymaps/default/keymap.c
+++ b/keyboards/ymdk_np21/keymaps/default/keymap.c
@@ -1,5 +1,4 @@
-#include "ymdk_np21.h"
-#include "action_layer.h"
+#include QMK_KEYBOARD_H
#define _NP 0
#define _BL 1
@@ -21,7 +20,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* | Enter| Enter| + | + | - | FN |
* `-----------------------------------------'
*/
-[_NP] = KEYMAP( \
+[_NP] = LAYOUT( \
KC_KP_0, KC_KP_1, KC_KP_4, KC_KP_7, KC_NUMLOCK, KC_ESC, \
KC_DOT, KC_KP_2, KC_KP_5, KC_KP_8, KC_KP_SLASH, KC_TAB, \
KC_KP_DOT, KC_KP_3, KC_KP_6, KC_KP_9, KC_KP_ASTERISK, KC_BSPACE, \
@@ -38,7 +37,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* | BL_DEC | BL_DEC | BL_INC | BL_INC | | |
* `---------------------------------------------'
*/
-[_BL] = KEYMAP( \
+[_BL] = LAYOUT( \
BL_BRTG, _______, _______, _______, _______, _______, \
_______, BL_OFF, BL_TOGG, BL_ON, _______, _______, \
_______, _______, _______, _______, _______, _______, \