Skip to content

Commit

Permalink
Puck Refactor, Configurator support and readme cleanup (qmk#4615)
Browse files Browse the repository at this point in the history
* Puck: layout macro refactor

Reformat layout macro to resemble physical keyboard layout.

* Puck: Configurator support

* Puck: readme cleanup

Markdown formatting corrections.
  • Loading branch information
noroadsleft authored and rseymour committed Mar 13, 2019
1 parent 0f44df3 commit 3fd0cd0
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 5 deletions.
25 changes: 25 additions & 0 deletions keyboards/puck/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"keyboard_name": "Puck",
"url": "",
"maintainer": "john-pettigrew",
"width": 3,
"height": 4,
"layouts": {
"LAYOUT": {
"layout": [
{"label":"SW1", "x":0, "y":0},
{"label":"SW2", "x":1, "y":0},
{"label":"SW3", "x":2, "y":0},
{"label":"SW4", "x":0, "y":1},
{"label":"SW5", "x":1, "y":1},
{"label":"SW6", "x":2, "y":1},
{"label":"SW7", "x":0, "y":2},
{"label":"SW8", "x":1, "y":2},
{"label":"SW9", "x":2, "y":2},
{"label":"SW10", "x":0, "y":3},
{"label":"SW11", "x":1, "y":3},
{"label":"SW12", "x":2, "y":3}
]
}
}
}
5 changes: 4 additions & 1 deletion keyboards/puck/puck.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
#include "quantum.h"

#define LAYOUT( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B \
K00, K01, K02, \
K03, K04, K05, \
K06, K07, K08, \
K09, K0A, K0B \
) { \
{ K00, K01, K02 }, \
{ K03, K04, K05 }, \
Expand Down
10 changes: 6 additions & 4 deletions keyboards/puck/readme.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
A 4 x 3 macropad.
# Puck

Keyboard Maintainer: [john-pettigrew](https://github.com/john-pettigrew)
Hardware Supported: Puck PCB.
Hardware Availability: [OkKeebs.com](https://okkeebs.com/products/puck-pcb)
A 4x3 macropad.

Keyboard Maintainer: [John Pettigrew](https://github.com/john-pettigrew)
Hardware Supported: Puck PCB
Hardware Availability: [OKKeebs.com](https://okkeebs.com/products/puck-pcb)

Make example for this keyboard (after setting up your build environment):

Expand Down

0 comments on commit 3fd0cd0

Please sign in to comment.