summaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards')
-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 }, \