]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Configurator Support(info.json) for 1up Keyboards Sweet16 (#2570)
authorMechMerlin <30334081+mechmerlin@users.noreply.github.com>
Wed, 21 Mar 2018 00:22:42 +0000 (17:22 -0700)
committerJack Humbert <jack.humb@gmail.com>
Wed, 21 Mar 2018 00:22:42 +0000 (20:22 -0400)
* Configurator Support

- Add info.json to support existing layouts
- Add comment in sweet16.h to remind people to change info.json if
  the layout changes.

* Fix dlaroe's keymap

keyboards/sweet16/info.json [new file with mode: 0644]
keyboards/sweet16/keymaps/dlaroe/keymap.c
keyboards/sweet16/sweet16.h

diff --git a/keyboards/sweet16/info.json b/keyboards/sweet16/info.json
new file mode 100644 (file)
index 0000000..b43197c
--- /dev/null
@@ -0,0 +1,20 @@
+{
+  "keyboard_name": "Sweet 16",
+  "manufacturer": "1UP Keyboards",
+  "identifier": "",
+  "url": "",
+  "maintainer": "qmk",
+  "processor": "atmega32u4",
+  "bootloader": "atmel-dfu",
+  "width": 4,
+  "height": 4,
+  "layouts": {
+      "LAYOUT_ortho_4x4": {
+          "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}]
+      },
+
+      "LAYOUT_numpad_4x4": {
+        "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0, "h":2}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2, "h":2}, {"x":0, "y":3, "w":2}, {"x":2, "y":3}]
+    }
+  }
+}
index ba947465e7d3ecd086f48e75a0ce712e634615ec..b42c34edb747529c2c15049a8f96081e2f56df46 100644 (file)
@@ -10,24 +10,24 @@ enum layers {
 
 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  [num] = LAYOUT_numpad_4x4(
-        KC_P7,   KC_P8,  KC_P9,  LT(extra, KC_PPLS), 
-        KC_P4,   KC_P5,  KC_P6,     
-        KC_P1,   KC_P2,  KC_P3,  KC_PENT,    
+        KC_P7,   KC_P8,  KC_P9,  LT(extra, KC_PPLS),
+        KC_P4,   KC_P5,  KC_P6,
+        KC_P1,   KC_P2,  KC_P3,  KC_PENT,
              LT(mouse, KC_P0),      KC_DOT
-    )
+    ),
 
  [extra] = LAYOUT_numpad_4x4(
-        KC_PSLS,   KC_PAST,  KC_PMNS,  KC_TRNS, 
-        KC_BSPC,   KC_EXC,  KC_DEL,     
-        KC_LPRN,   KC_RPRN,  KC_PEQL,  KC_PENT,    
+        KC_PSLS,   KC_PAST,  KC_PMNS,  KC_TRNS,
+        KC_BSPC,   KC_EXECUTE,  KC_DEL,
+        KC_LPRN,   KC_RPRN,  KC_PEQL,  KC_PENT,
              KC_TAB,      KC_NLCK
-    )
+    ),
 
 
 [mouse] = LAYOUT_numpad_4x4(
-        KC_MS_WH_D,   KC_MS_U,  KC_MS_WH_U,  LT(extra, KC_PPLS), 
-        KC_MS_L,   KC_MS_D,  KC_MS_R,     
-        KC_BTN1,   KC_BTN2,  KC_BTN3,  KC_PENT,    
+        KC_WH_D,   KC_MS_U,  KC_WH_U,  LT(extra, KC_PPLS),
+        KC_MS_L,   KC_MS_D,  KC_MS_R,
+        KC_BTN1,   KC_BTN2,  KC_BTN3,  KC_PENT,
              KC_TRNS,      KC_DOT
     )
 
index 23d411a89b29ebea221cc9c6268b3d845a57e1d0..879f51fae66afffbd870de5a3c0e7fbecb9ff7f4 100644 (file)
@@ -3,6 +3,8 @@
 
 #include "quantum.h"
 
+// Any changes to the layout names and/or definitions must also be made to info.json
+
 #define LAYOUT_ortho_4x4( \
     K00, K01, K02, K03, \
     K10, K11, K12, K13, \
@@ -22,9 +24,9 @@
        K31,   K32      \
 ) { \
     { K00,   K01,   K02,   K03 }, \
-    { K10,   K11,   K12,   K13 }, \
+    { K10,   K11,   K12,   KC_NO }, \
     { K20,   K21,   K22,   K23 }, \
-    { K30,   K31,   K32,   K33 }  \
+    { KC_NO, K31,   K32,   KC_NO }  \
 }
 
-#endif
\ No newline at end of file
+#endif