summaryrefslogtreecommitdiff
path: root/keyboards/knops/mini
diff options
context:
space:
mode:
authorPawnerd <Pawnerd@users.noreply.github.com>2018-04-28 17:06:07 +0200
committerDrashna Jaelre <drashna@live.com>2018-04-28 08:06:07 -0700
commit5dc60c06a9f513b177e3f432648265953fa14cd4 (patch)
tree83ae17e7d6d4a787d4b8875a7b6fb60ef88b16b4 /keyboards/knops/mini
parent01a85b780c3cea3ca2f585e547f376a82859712f (diff)
downloadqmk_firmware-5dc60c06a9f513b177e3f432648265953fa14cd4.tar.gz
qmk_firmware-5dc60c06a9f513b177e3f432648265953fa14cd4.zip
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.
Diffstat (limited to 'keyboards/knops/mini')
-rw-r--r--keyboards/knops/mini/info.json13
-rw-r--r--keyboards/knops/mini/keymaps/default/keymap.c34
-rw-r--r--keyboards/knops/mini/mini.h2
3 files changed, 31 insertions, 18 deletions
diff --git a/keyboards/knops/mini/info.json b/keyboards/knops/mini/info.json
new file mode 100644
index 0000000000..88fb88c29a
--- /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 40714c8a51..a5a701c88d 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 c9f74711b8..e2d6c546b0 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 }, \