aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornoroadsleft <18669334+noroadsleft@users.noreply.github.com>2018-12-12 12:46:56 -0800
committerDrashna Jaelre <drashna@live.com>2018-12-12 12:46:56 -0800
commitf6c0d999b99c6d18f838cd5d36f0351ca3345630 (patch)
treebf40e52d952ccb617c9940dd2a50a9e4f73d7175
parentbaf69ee89ded94b31a81c0b97ea942f489933a5b (diff)
downloadqmk_firmware-f6c0d999b99c6d18f838cd5d36f0351ca3345630.tar.gz
qmk_firmware-f6c0d999b99c6d18f838cd5d36f0351ca3345630.zip
Puck Refactor, Configurator support and readme cleanup (#4615)
* Puck: layout macro refactor Reformat layout macro to resemble physical keyboard layout. * Puck: Configurator support * Puck: readme cleanup Markdown formatting corrections.
-rw-r--r--keyboards/puck/info.json25
-rw-r--r--keyboards/puck/puck.h5
-rw-r--r--keyboards/puck/readme.md10
3 files changed, 35 insertions, 5 deletions
diff --git a/keyboards/puck/info.json b/keyboards/puck/info.json
new file mode 100644
index 000000000..e8d03a43f
--- /dev/null
+++ b/keyboards/puck/info.json
@@ -0,0 +1,25 @@
1{
2 "keyboard_name": "Puck",
3 "url": "",
4 "maintainer": "john-pettigrew",
5 "width": 3,
6 "height": 4,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label":"SW1", "x":0, "y":0},
11 {"label":"SW2", "x":1, "y":0},
12 {"label":"SW3", "x":2, "y":0},
13 {"label":"SW4", "x":0, "y":1},
14 {"label":"SW5", "x":1, "y":1},
15 {"label":"SW6", "x":2, "y":1},
16 {"label":"SW7", "x":0, "y":2},
17 {"label":"SW8", "x":1, "y":2},
18 {"label":"SW9", "x":2, "y":2},
19 {"label":"SW10", "x":0, "y":3},
20 {"label":"SW11", "x":1, "y":3},
21 {"label":"SW12", "x":2, "y":3}
22 ]
23 }
24 }
25}
diff --git a/keyboards/puck/puck.h b/keyboards/puck/puck.h
index 4467614fd..0f2a284a6 100644
--- a/keyboards/puck/puck.h
+++ b/keyboards/puck/puck.h
@@ -4,7 +4,10 @@
4#include "quantum.h" 4#include "quantum.h"
5 5
6#define LAYOUT( \ 6#define LAYOUT( \
7 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B \ 7 K00, K01, K02, \
8 K03, K04, K05, \
9 K06, K07, K08, \
10 K09, K0A, K0B \
8) { \ 11) { \
9 { K00, K01, K02 }, \ 12 { K00, K01, K02 }, \
10 { K03, K04, K05 }, \ 13 { K03, K04, K05 }, \
diff --git a/keyboards/puck/readme.md b/keyboards/puck/readme.md
index 45e438c47..fe1bd1668 100644
--- a/keyboards/puck/readme.md
+++ b/keyboards/puck/readme.md
@@ -1,8 +1,10 @@
1A 4 x 3 macropad. 1# Puck
2 2
3Keyboard Maintainer: [john-pettigrew](https://github.com/john-pettigrew) 3A 4x3 macropad.
4Hardware Supported: Puck PCB. 4
5Hardware Availability: [OkKeebs.com](https://okkeebs.com/products/puck-pcb) 5Keyboard Maintainer: [John Pettigrew](https://github.com/john-pettigrew)
6Hardware Supported: Puck PCB
7Hardware Availability: [OKKeebs.com](https://okkeebs.com/products/puck-pcb)
6 8
7Make example for this keyboard (after setting up your build environment): 9Make example for this keyboard (after setting up your build environment):
8 10