Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Commit

Permalink
Add knops mini info json and implemented latest QMK standards (qmk#2832)
Browse files Browse the repository at this point in the history
* added info.json to knops mini keypad.

* updated the keyboard to follow the latest qmk standards.
  • Loading branch information
Pawnerd authored and drashna committed Apr 28, 2018
1 parent 01a85b7 commit 5dc60c0
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 18 deletions.
13 changes: 13 additions & 0 deletions keyboards/knops/mini/info.json
Original file line number Diff line number Diff line change
@@ -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}]
}
}
}
34 changes: 17 additions & 17 deletions keyboards/knops/mini/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -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)

};
Expand Down
2 changes: 1 addition & 1 deletion keyboards/knops/mini/mini.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 }, \
Expand Down

0 comments on commit 5dc60c0

Please sign in to comment.