Puck Refactor, Configurator support and readme cleanup (#4615)
authornoroadsleft <18669334+noroadsleft@users.noreply.github.com>
Wed, 12 Dec 2018 20:46:56 +0000 (12:46 -0800)
committerDrashna Jaelre <drashna@live.com>
Wed, 12 Dec 2018 20:46:56 +0000 (12:46 -0800)
* Puck: layout macro refactor

Reformat layout macro to resemble physical keyboard layout.

* Puck: Configurator support

* Puck: readme cleanup

Markdown formatting corrections.

keyboards/puck/info.json [new file with mode: 0644]
keyboards/puck/puck.h
keyboards/puck/readme.md

diff --git a/keyboards/puck/info.json b/keyboards/puck/info.json
new file mode 100644 (file)
index 0000000..e8d03a4
--- /dev/null
@@ -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}
+      ]
+    }
+  }
+}
index 4467614fdb80a3ca0f3d900b75be3b04a50e10df..0f2a284a67f80442116df006e1ad52b54e5b0657 100644 (file)
@@ -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 }, \
index 45e438c4719e501f0a95299f0081c2216dd83ebd..fe1bd1668f6a5a043857b25e5e0b4cff54a3ea5f 100644 (file)
@@ -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):