From 5dc60c06a9f513b177e3f432648265953fa14cd4 Mon Sep 17 00:00:00 2001 From: Pawnerd Date: Sat, 28 Apr 2018 17:06:07 +0200 Subject: [PATCH] Add knops mini info json and implemented latest QMK standards (#2832) * added info.json to knops mini keypad. * updated the keyboard to follow the latest qmk standards. --- keyboards/knops/mini/info.json | 13 +++++++ keyboards/knops/mini/keymaps/default/keymap.c | 34 +++++++++---------- keyboards/knops/mini/mini.h | 2 +- 3 files changed, 31 insertions(+), 18 deletions(-) create mode 100644 keyboards/knops/mini/info.json diff --git a/keyboards/knops/mini/info.json b/keyboards/knops/mini/info.json new file mode 100644 index 00000000..88fb88c2 --- /dev/null +++ b/keyboards/knops/mini/info.json @@ -0,0 +1,13 @@ +{ + "keyboard_name": "Knops Mini", + "url": "http://www.knops.io/knopsmini.html", + "maintainer": "Pawnerd", + "bootloader": "lufa-dfu", + "width": 3, + "height": 2, + "layouts": { + "KEYMAP": { + "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}] + } + } +} \ No newline at end of file diff --git a/keyboards/knops/mini/keymaps/default/keymap.c b/keyboards/knops/mini/keymaps/default/keymap.c index 40714c8a..a5a701c8 100644 --- a/keyboards/knops/mini/keymaps/default/keymap.c +++ b/keyboards/knops/mini/keymaps/default/keymap.c @@ -1,53 +1,53 @@ -#include "mini.h" +#include QMK_KEYBOARD_H const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - KEYMAP( + LAYOUT( LT(3, KC_MSTP), KC_VOLU, KC_MPLY, KC_MPRV, KC_VOLD, KC_MNXT), - KEYMAP( + LAYOUT( LT(3, KC_ESC), M(3), M(4), M(5), M(6), M(7)), - KEYMAP( + LAYOUT( LT(3, KC_1), KC_2, KC_3, KC_4, M(0), M(1)), - KEYMAP( + LAYOUT( KC_TRNS, KC_TRNS, RESET, TO(0), TO(1), TO(2)), - KEYMAP( + LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - KEYMAP( + LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - KEYMAP( + LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - KEYMAP( + LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - KEYMAP( + LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - KEYMAP( + LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - KEYMAP( + LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - KEYMAP( + LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - KEYMAP( + LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - KEYMAP( + LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - KEYMAP( + LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - KEYMAP( + LAYOUT( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS) }; diff --git a/keyboards/knops/mini/mini.h b/keyboards/knops/mini/mini.h index c9f74711..e2d6c546 100644 --- a/keyboards/knops/mini/mini.h +++ b/keyboards/knops/mini/mini.h @@ -22,7 +22,7 @@ // The following is an example using the Planck MIT layout // The first section contains all of the arguments // The second converts the arguments into a two-dimensional array -#define KEYMAP( \ +#define LAYOUT( \ K00, K01, K02, K03, K04, K05 \ ) { \ { K00, K01, K02, K03, K04, K05 }, \