Browse Source

Boardsource 3x4 info json fix (#9266)

* added bordsource 3x4 macro pad

* added bordsource 3x4 macro pad

* Update keyboards/boardsource/3x4/3x4.h

* Update keyboards/boardsource/3x4/3x4.c

* Update keyboards/boardsource/3x4/config.h

* Update keyboards/boardsource/3x4/config.h

* Update keyboards/boardsource/3x4/config.h

* Update keyboards/boardsource/3x4/config.h

* added link to readme

* Update keyboards/boardsource/3x4/keymaps/default/keymap.c

* Apply suggestions from code review

* changed the layout to refelect the keyboard

* Update keyboards/boardsource/3x4/info.json

Oh your right my bad. In the future is there an easier way for me to test the info.json and the confiscator before doing my pr?

* Apply suggestions from code review

* got 3x4 building again

* Apply suggestions from code review

* applied requested change on readme

* Update keyboards/boardsource/3x4/readme.md

* Apply suggestions from code review
cole smith 5 years ago
parent
commit
ba7f52aaeb

+ 11 - 10
keyboards/boardsource/3x4/info.json

@@ -5,23 +5,24 @@
     "width": 4,
     "height": 3,
     "layouts": {
+
         "LAYOUT": {
+
             "layout": [
                 { "label": "K01", "x": 0, "y": 0 },
                 { "label": "K02", "x": 1, "y": 0 },
                 { "label": "K03", "x": 2, "y": 0 },
+                { "label": "K04", "x": 3, "y": 0 },
 
-                { "label": "K04", "x": 0, "y": 1 },
-                { "label": "K05", "x": 1, "y": 1 },
-                { "label": "K06", "x": 2, "y": 1 },
-
-                { "label": "K07", "x": 0, "y": 2 },
-                { "label": "K08", "x": 1, "y": 2 },
-                { "label": "K09", "x": 2, "y": 2 },
+                { "label": "K05", "x": 0, "y": 1 },
+                { "label": "K06", "x": 1, "y": 1 },
+                { "label": "K07", "x": 2, "y": 1 },
+                { "label": "K08", "x": 3, "y": 1 },
 
-                { "label": "K10", "x": 0, "y": 3 },
-                { "label": "K11", "x": 1, "y": 3 },
-                { "label": "K12", "x": 2, "y": 3 }
+                { "label": "K09", "x": 0, "y": 2 },
+                { "label": "K10", "x": 1, "y": 2 },
+                { "label": "K11", "x": 2, "y": 2 },
+                { "label": "K12", "x": 3, "y": 2 }
             ]
         }
     }

+ 5 - 4
keyboards/boardsource/3x4/keymaps/default/keymap.c

@@ -1,9 +1,10 @@
-
 #include QMK_KEYBOARD_H
 
-#define _MAIN 0
-#define _RAISE 1
-#define _LOWER 2
+enum layers {
+    _MAIN,
+    _RAISE,
+    _LOWER,
+};
 
 // Readability keycodes
 #define LOWER   MO(_LOWER)

+ 2 - 1
keyboards/boardsource/3x4/readme.md

@@ -1,5 +1,6 @@
 # 3x4
-![Boardsource 3x4 macro](https://i.imgur.com/EiPF1hh.jpg)
+
+![Boardsource 3x4 macro](https://i.imgur.com/EiPF1hhl.jpg)
 
 this macro pad / small 12 key was inspired by the plaid look