From 5c464df600f0ed8a5f67a275250f745a611c7c25 Mon Sep 17 00:00:00 2001 From: James Young <18669334+noroadsleft@users.noreply.github.com> Date: Wed, 3 May 2023 14:35:38 -0700 Subject: [PATCH] TheDogKeyboard Layout Macro Addition (#20689) * add matrix_diagram.md * info.json: apply friendly formatting * add LAYOUT_fullsize_ansi * enable Community Layout support * refactor default keymap for readability --- keyboards/kakunpc/thedogkeyboard/info.json | 351 ++++++++++++------ .../thedogkeyboard/keymaps/default/keymap.c | 12 +- .../kakunpc/thedogkeyboard/matrix_diagram.md | 23 ++ 3 files changed, 269 insertions(+), 117 deletions(-) create mode 100644 keyboards/kakunpc/thedogkeyboard/matrix_diagram.md diff --git a/keyboards/kakunpc/thedogkeyboard/info.json b/keyboards/kakunpc/thedogkeyboard/info.json index 1579f25aa1..2bd57bc958 100644 --- a/keyboards/kakunpc/thedogkeyboard/info.json +++ b/keyboards/kakunpc/thedogkeyboard/info.json @@ -13,138 +13,267 @@ }, "processor": "atmega32u4", "bootloader": "atmel-dfu", + "community_layouts": [ + "fullsize_ansi" + ], "layouts": { "LAYOUT_all": { "layout": [ - {"matrix": [0, 0], "x": 0, "y": 0}, + {"label": "Esc", "matrix": [0, 0], "x": 0, "y": 0}, + + {"label": "F1", "matrix": [1, 0], "x": 2, "y": 0}, + {"label": "F2", "matrix": [2, 0], "x": 3, "y": 0}, + {"label": "F3", "matrix": [3, 0], "x": 4, "y": 0}, + {"label": "F4", "matrix": [4, 0], "x": 5, "y": 0}, + + {"label": "F5", "matrix": [5, 0], "x": 6.5, "y": 0}, + {"label": "F6", "matrix": [6, 0], "x": 7.5, "y": 0}, + {"label": "F7", "matrix": [7, 0], "x": 8.5, "y": 0}, + {"label": "F8", "matrix": [8, 0], "x": 9.5, "y": 0}, + + {"label": "F9", "matrix": [9, 0], "x": 11, "y": 0}, + {"label": "F10", "matrix": [10, 0], "x": 12, "y": 0}, + {"label": "F11", "matrix": [11, 0], "x": 13, "y": 0}, + {"label": "F12", "matrix": [12, 0], "x": 14, "y": 0}, + + {"label": "Print Screen", "matrix": [13, 0], "x": 15.25, "y": 0}, + {"label": "Scroll Lock", "matrix": [14, 0], "x": 16.25, "y": 0}, + {"label": "Pause", "matrix": [15, 0], "x": 17.25, "y": 0}, + + {"label": "`", "matrix": [0, 1], "x": 0, "y": 1.5}, + {"label": "1", "matrix": [1, 1], "x": 1, "y": 1.5}, + {"label": "2", "matrix": [2, 1], "x": 2, "y": 1.5}, + {"label": "3", "matrix": [3, 1], "x": 3, "y": 1.5}, + {"label": "4", "matrix": [4, 1], "x": 4, "y": 1.5}, + {"label": "5", "matrix": [5, 1], "x": 5, "y": 1.5}, + {"label": "6", "matrix": [6, 1], "x": 6, "y": 1.5}, + {"label": "7", "matrix": [7, 1], "x": 7, "y": 1.5}, + {"label": "8", "matrix": [8, 1], "x": 8, "y": 1.5}, + {"label": "9", "matrix": [9, 1], "x": 9, "y": 1.5}, + {"label": "0", "matrix": [10, 1], "x": 10, "y": 1.5}, + {"label": "-", "matrix": [11, 1], "x": 11, "y": 1.5}, + {"label": "=", "matrix": [12, 1], "x": 12, "y": 1.5}, + {"label": "Backspace", "matrix": [13, 1], "x": 13, "y": 1.5, "w": 2}, + + {"label": "Insert", "matrix": [14, 1], "x": 15.25, "y": 1.5}, + {"label": "Home", "matrix": [15, 2], "x": 16.25, "y": 1.5}, + {"label": "Page Up", "matrix": [15, 1], "x": 17.25, "y": 1.5}, + + {"label": "Num Lock", "matrix": [16, 0], "x": 18.5, "y": 1.5}, + {"label": "/", "matrix": [17, 0], "x": 19.5, "y": 1.5}, + {"label": "*", "matrix": [18, 0], "x": 20.5, "y": 1.5}, + {"label": "-", "matrix": [19, 0], "x": 21.5, "y": 1.5}, + + {"label": "Tab", "matrix": [0, 2], "x": 0, "y": 2.5, "w": 1.5}, + {"label": "Q", "matrix": [1, 2], "x": 1.5, "y": 2.5}, + {"label": "W", "matrix": [2, 2], "x": 2.5, "y": 2.5}, + {"label": "E", "matrix": [3, 2], "x": 3.5, "y": 2.5}, + {"label": "R", "matrix": [4, 2], "x": 4.5, "y": 2.5}, + {"label": "T", "matrix": [5, 2], "x": 5.5, "y": 2.5}, + {"label": "Y", "matrix": [6, 2], "x": 6.5, "y": 2.5}, + {"label": "U", "matrix": [7, 2], "x": 7.5, "y": 2.5}, + {"label": "I", "matrix": [8, 2], "x": 8.5, "y": 2.5}, + {"label": "O", "matrix": [9, 2], "x": 9.5, "y": 2.5}, + {"label": "P", "matrix": [10, 2], "x": 10.5, "y": 2.5}, + {"label": "[", "matrix": [11, 2], "x": 11.5, "y": 2.5}, + {"label": "]", "matrix": [12, 2], "x": 12.5, "y": 2.5}, + {"label": "\\", "matrix": [13, 2], "x": 13.5, "y": 2.5, "w": 1.5}, + + {"label": "Delete", "matrix": [14, 2], "x": 15.25, "y": 2.5}, + {"label": "End", "matrix": [15, 4], "x": 16.25, "y": 2.5}, + {"label": "Page Down", "matrix": [15, 3], "x": 17.25, "y": 2.5}, + + {"label": "7", "matrix": [16, 1], "x": 18.5, "y": 2.5}, + {"label": "8", "matrix": [17, 1], "x": 19.5, "y": 2.5}, + {"label": "9", "matrix": [18, 1], "x": 20.5, "y": 2.5}, + {"label": "+", "matrix": [19, 1], "x": 21.5, "y": 2.5}, + + {"label": "Caps Lock", "matrix": [0, 3], "x": 0, "y": 3.5, "w": 1.75}, + {"label": "A", "matrix": [1, 3], "x": 1.75, "y": 3.5}, + {"label": "S", "matrix": [2, 3], "x": 2.75, "y": 3.5}, + {"label": "D", "matrix": [3, 3], "x": 3.75, "y": 3.5}, + {"label": "F", "matrix": [4, 3], "x": 4.75, "y": 3.5}, + {"label": "G", "matrix": [5, 3], "x": 5.75, "y": 3.5}, + {"label": "H", "matrix": [6, 3], "x": 6.75, "y": 3.5}, + {"label": "J", "matrix": [7, 3], "x": 7.75, "y": 3.5}, + {"label": "K", "matrix": [8, 3], "x": 8.75, "y": 3.5}, + {"label": "L", "matrix": [9, 3], "x": 9.75, "y": 3.5}, + {"label": ";", "matrix": [10, 3], "x": 10.75, "y": 3.5}, + {"label": "'", "matrix": [11, 3], "x": 11.75, "y": 3.5}, + {"label": "Enter", "matrix": [13, 3], "x": 12.75, "y": 3.5, "w": 2.25}, + + {"label": "4", "matrix": [16, 2], "x": 18.5, "y": 3.5}, + {"label": "5", "matrix": [17, 2], "x": 19.5, "y": 3.5}, + {"label": "6", "matrix": [18, 2], "x": 20.5, "y": 3.5}, + {"label": "\u2298", "matrix": [19, 3], "x": 21.5, "y": 3.5}, + + {"label": "Shift", "matrix": [0, 4], "x": 0, "y": 4.5, "w": 2.25}, + {"label": "Z", "matrix": [1, 4], "x": 2.25, "y": 4.5}, + {"label": "X", "matrix": [2, 4], "x": 3.25, "y": 4.5}, + {"label": "C", "matrix": [3, 4], "x": 4.25, "y": 4.5}, + {"label": "V", "matrix": [4, 4], "x": 5.25, "y": 4.5}, + {"label": "B", "matrix": [5, 4], "x": 6.25, "y": 4.5}, + {"label": "N", "matrix": [6, 4], "x": 7.25, "y": 4.5}, + {"label": "M", "matrix": [7, 4], "x": 8.25, "y": 4.5}, + {"label": ",", "matrix": [8, 4], "x": 9.25, "y": 4.5}, + {"label": ".", "matrix": [9, 4], "x": 10.25, "y": 4.5}, + {"label": "/", "matrix": [10, 4], "x": 11.25, "y": 4.5}, + {"label": "Shift", "matrix": [13, 4], "x": 12.25, "y": 4.5, "w": 2.75}, + + {"label": "\u2191", "matrix": [15, 5], "x": 16.25, "y": 4.5}, + + {"label": "1", "matrix": [16, 3], "x": 18.5, "y": 4.5}, + {"label": "2", "matrix": [17, 3], "x": 19.5, "y": 4.5}, + {"label": "3", "matrix": [18, 3], "x": 20.5, "y": 4.5}, + {"label": "Enter", "matrix": [19, 2], "x": 21.5, "y": 4.5}, + + {"label": "Ctrl", "matrix": [0, 5], "x": 0, "y": 5.5, "w": 1.25}, + {"label": "GUI", "matrix": [1, 5], "x": 1.25, "y": 5.5, "w": 1.25}, + {"label": "Alt", "matrix": [2, 5], "x": 2.5, "y": 5.5, "w": 1.25}, + {"label": "\u2298", "matrix": [3, 5], "x": 3.75, "y": 5.5, "w": 1.25}, + {"label": "\u2298", "matrix": [4, 5], "x": 5, "y": 5.5, "w": 1.25}, + {"label": "Space", "matrix": [5, 5], "x": 6.25, "y": 5.5, "w": 1.25}, + {"label": "\u2298", "matrix": [6, 5], "x": 7.5, "y": 5.5, "w": 1.25}, + {"label": "\u2298", "matrix": [7, 5], "x": 8.75, "y": 5.5, "w": 1.25}, + {"label": "Alt", "matrix": [9, 5], "x": 10, "y": 5.5, "w": 1.25}, + {"label": "GUI", "matrix": [10, 5], "x": 11.25, "y": 5.5, "w": 1.25}, + {"label": "Space", "matrix": [12, 3], "x": 12.5, "y": 5.5, "w": 1.25}, + {"label": "Ctrl", "matrix": [13, 5], "x": 13.75, "y": 5.5, "w": 1.25}, + + {"label": "\u2190", "matrix": [14, 3], "x": 15.25, "y": 5.5}, + {"label": "\u2193", "matrix": [14, 4], "x": 16.25, "y": 5.5}, + {"label": "\u2192", "matrix": [14, 5], "x": 17.25, "y": 5.5}, + + {"label": "0", "matrix": [16, 4], "x": 18.5, "y": 5.5}, + {"label": "\u2298", "matrix": [17, 4], "x": 19.5, "y": 5.5}, + {"label": ".", "matrix": [18, 4], "x": 20.5, "y": 5.5}, + {"label": "\u2298", "matrix": [19, 4], "x": 21.5, "y": 5.5} + ] + }, + "LAYOUT_fullsize_ansi": { + "layout": [ + {"label": "Esc", "matrix": [0, 0], "x": 0, "y": 0}, - {"matrix": [1, 0], "x": 2, "y": 0}, - {"matrix": [2, 0], "x": 3, "y": 0}, - {"matrix": [3, 0], "x": 4, "y": 0}, - {"matrix": [4, 0], "x": 5, "y": 0}, + {"label": "F1", "matrix": [1, 0], "x": 2, "y": 0}, + {"label": "F2", "matrix": [2, 0], "x": 3, "y": 0}, + {"label": "F3", "matrix": [3, 0], "x": 4, "y": 0}, + {"label": "F4", "matrix": [4, 0], "x": 5, "y": 0}, - {"matrix": [5, 0], "x": 6.5, "y": 0}, - {"matrix": [6, 0], "x": 7.5, "y": 0}, - {"matrix": [7, 0], "x": 8.5, "y": 0}, - {"matrix": [8, 0], "x": 9.5, "y": 0}, + {"label": "F5", "matrix": [5, 0], "x": 6.5, "y": 0}, + {"label": "F6", "matrix": [6, 0], "x": 7.5, "y": 0}, + {"label": "F7", "matrix": [7, 0], "x": 8.5, "y": 0}, + {"label": "F8", "matrix": [8, 0], "x": 9.5, "y": 0}, - {"matrix": [9, 0], "x": 11, "y": 0}, - {"matrix": [10, 0], "x": 12, "y": 0}, - {"matrix": [11, 0], "x": 13, "y": 0}, - {"matrix": [12, 0], "x": 14, "y": 0}, + {"label": "F9", "matrix": [9, 0], "x": 11, "y": 0}, + {"label": "F10", "matrix": [10, 0], "x": 12, "y": 0}, + {"label": "F11", "matrix": [11, 0], "x": 13, "y": 0}, + {"label": "F12", "matrix": [12, 0], "x": 14, "y": 0}, - {"matrix": [13, 0], "x": 15.25, "y": 0}, - {"matrix": [14, 0], "x": 16.25, "y": 0}, - {"matrix": [15, 0], "x": 17.25, "y": 0}, + {"label": "Print Screen", "matrix": [13, 0], "x": 15.25, "y": 0}, + {"label": "Scroll Lock", "matrix": [14, 0], "x": 16.25, "y": 0}, + {"label": "Pause", "matrix": [15, 0], "x": 17.25, "y": 0}, - {"matrix": [0, 1], "x": 0, "y": 1.5}, - {"matrix": [1, 1], "x": 1, "y": 1.5}, - {"matrix": [2, 1], "x": 2, "y": 1.5}, - {"matrix": [3, 1], "x": 3, "y": 1.5}, - {"matrix": [4, 1], "x": 4, "y": 1.5}, - {"matrix": [5, 1], "x": 5, "y": 1.5}, - {"matrix": [6, 1], "x": 6, "y": 1.5}, - {"matrix": [7, 1], "x": 7, "y": 1.5}, - {"matrix": [8, 1], "x": 8, "y": 1.5}, - {"matrix": [9, 1], "x": 9, "y": 1.5}, - {"matrix": [10, 1], "x": 10, "y": 1.5}, - {"matrix": [11, 1], "x": 11, "y": 1.5}, - {"matrix": [12, 1], "x": 12, "y": 1.5}, - {"matrix": [13, 1], "x": 13, "y": 1.5, "w": 2}, + {"label": "`", "matrix": [0, 1], "x": 0, "y": 1.5}, + {"label": "1", "matrix": [1, 1], "x": 1, "y": 1.5}, + {"label": "2", "matrix": [2, 1], "x": 2, "y": 1.5}, + {"label": "3", "matrix": [3, 1], "x": 3, "y": 1.5}, + {"label": "4", "matrix": [4, 1], "x": 4, "y": 1.5}, + {"label": "5", "matrix": [5, 1], "x": 5, "y": 1.5}, + {"label": "6", "matrix": [6, 1], "x": 6, "y": 1.5}, + {"label": "7", "matrix": [7, 1], "x": 7, "y": 1.5}, + {"label": "8", "matrix": [8, 1], "x": 8, "y": 1.5}, + {"label": "9", "matrix": [9, 1], "x": 9, "y": 1.5}, + {"label": "0", "matrix": [10, 1], "x": 10, "y": 1.5}, + {"label": "-", "matrix": [11, 1], "x": 11, "y": 1.5}, + {"label": "=", "matrix": [12, 1], "x": 12, "y": 1.5}, + {"label": "Backspace", "matrix": [13, 1], "x": 13, "y": 1.5, "w": 2}, - {"matrix": [14, 1], "x": 15.25, "y": 1.5}, - {"matrix": [15, 2], "x": 16.25, "y": 1.5}, - {"matrix": [15, 1], "x": 17.25, "y": 1.5}, + {"label": "Insert", "matrix": [14, 1], "x": 15.25, "y": 1.5}, + {"label": "Home", "matrix": [15, 2], "x": 16.25, "y": 1.5}, + {"label": "Page Up", "matrix": [15, 1], "x": 17.25, "y": 1.5}, - {"matrix": [16, 0], "x": 18.5, "y": 1.5}, - {"matrix": [17, 0], "x": 19.5, "y": 1.5}, - {"matrix": [18, 0], "x": 20.5, "y": 1.5}, - {"matrix": [19, 0], "x": 21.5, "y": 1.5}, + {"label": "Num Lock", "matrix": [16, 0], "x": 18.5, "y": 1.5}, + {"label": "/", "matrix": [17, 0], "x": 19.5, "y": 1.5}, + {"label": "*", "matrix": [18, 0], "x": 20.5, "y": 1.5}, + {"label": "-", "matrix": [19, 0], "x": 21.5, "y": 1.5}, - {"matrix": [0, 2], "x": 0, "y": 2.5, "w": 1.5}, - {"matrix": [1, 2], "x": 1.5, "y": 2.5}, - {"matrix": [2, 2], "x": 2.5, "y": 2.5}, - {"matrix": [3, 2], "x": 3.5, "y": 2.5}, - {"matrix": [4, 2], "x": 4.5, "y": 2.5}, - {"matrix": [5, 2], "x": 5.5, "y": 2.5}, - {"matrix": [6, 2], "x": 6.5, "y": 2.5}, - {"matrix": [7, 2], "x": 7.5, "y": 2.5}, - {"matrix": [8, 2], "x": 8.5, "y": 2.5}, - {"matrix": [9, 2], "x": 9.5, "y": 2.5}, - {"matrix": [10, 2], "x": 10.5, "y": 2.5}, - {"matrix": [11, 2], "x": 11.5, "y": 2.5}, - {"matrix": [12, 2], "x": 12.5, "y": 2.5}, - {"matrix": [13, 2], "x": 13.5, "y": 2.5, "w": 1.5}, + {"label": "Tab", "matrix": [0, 2], "x": 0, "y": 2.5, "w": 1.5}, + {"label": "Q", "matrix": [1, 2], "x": 1.5, "y": 2.5}, + {"label": "W", "matrix": [2, 2], "x": 2.5, "y": 2.5}, + {"label": "E", "matrix": [3, 2], "x": 3.5, "y": 2.5}, + {"label": "R", "matrix": [4, 2], "x": 4.5, "y": 2.5}, + {"label": "T", "matrix": [5, 2], "x": 5.5, "y": 2.5}, + {"label": "Y", "matrix": [6, 2], "x": 6.5, "y": 2.5}, + {"label": "U", "matrix": [7, 2], "x": 7.5, "y": 2.5}, + {"label": "I", "matrix": [8, 2], "x": 8.5, "y": 2.5}, + {"label": "O", "matrix": [9, 2], "x": 9.5, "y": 2.5}, + {"label": "P", "matrix": [10, 2], "x": 10.5, "y": 2.5}, + {"label": "[", "matrix": [11, 2], "x": 11.5, "y": 2.5}, + {"label": "]", "matrix": [12, 2], "x": 12.5, "y": 2.5}, + {"label": "\\", "matrix": [13, 2], "x": 13.5, "y": 2.5, "w": 1.5}, - {"matrix": [14, 2], "x": 15.25, "y": 2.5}, - {"matrix": [15, 4], "x": 16.25, "y": 2.5}, - {"matrix": [15, 3], "x": 17.25, "y": 2.5}, + {"label": "Delete", "matrix": [14, 2], "x": 15.25, "y": 2.5}, + {"label": "End", "matrix": [15, 4], "x": 16.25, "y": 2.5}, + {"label": "Page Down", "matrix": [15, 3], "x": 17.25, "y": 2.5}, - {"matrix": [16, 1], "x": 18.5, "y": 2.5}, - {"matrix": [17, 1], "x": 19.5, "y": 2.5}, - {"matrix": [18, 1], "x": 20.5, "y": 2.5}, - {"matrix": [19, 1], "x": 21.5, "y": 2.5}, + {"label": "7", "matrix": [16, 1], "x": 18.5, "y": 2.5}, + {"label": "8", "matrix": [17, 1], "x": 19.5, "y": 2.5}, + {"label": "9", "matrix": [18, 1], "x": 20.5, "y": 2.5}, + {"label": "+", "matrix": [19, 1], "x": 21.5, "y": 2.5, "h": 2}, - {"matrix": [0, 3], "x": 0, "y": 3.5, "w": 1.75}, - {"matrix": [1, 3], "x": 1.75, "y": 3.5}, - {"matrix": [2, 3], "x": 2.75, "y": 3.5}, - {"matrix": [3, 3], "x": 3.75, "y": 3.5}, - {"matrix": [4, 3], "x": 4.75, "y": 3.5}, - {"matrix": [5, 3], "x": 5.75, "y": 3.5}, - {"matrix": [6, 3], "x": 6.75, "y": 3.5}, - {"matrix": [7, 3], "x": 7.75, "y": 3.5}, - {"matrix": [8, 3], "x": 8.75, "y": 3.5}, - {"matrix": [9, 3], "x": 9.75, "y": 3.5}, - {"matrix": [10, 3], "x": 10.75, "y": 3.5}, - {"matrix": [11, 3], "x": 11.75, "y": 3.5}, - {"matrix": [13, 3], "x": 12.75, "y": 3.5, "w": 2.25}, + {"label": "Caps Lock", "matrix": [0, 3], "x": 0, "y": 3.5, "w": 1.75}, + {"label": "A", "matrix": [1, 3], "x": 1.75, "y": 3.5}, + {"label": "S", "matrix": [2, 3], "x": 2.75, "y": 3.5}, + {"label": "D", "matrix": [3, 3], "x": 3.75, "y": 3.5}, + {"label": "F", "matrix": [4, 3], "x": 4.75, "y": 3.5}, + {"label": "G", "matrix": [5, 3], "x": 5.75, "y": 3.5}, + {"label": "H", "matrix": [6, 3], "x": 6.75, "y": 3.5}, + {"label": "J", "matrix": [7, 3], "x": 7.75, "y": 3.5}, + {"label": "K", "matrix": [8, 3], "x": 8.75, "y": 3.5}, + {"label": "L", "matrix": [9, 3], "x": 9.75, "y": 3.5}, + {"label": ";", "matrix": [10, 3], "x": 10.75, "y": 3.5}, + {"label": "'", "matrix": [11, 3], "x": 11.75, "y": 3.5}, + {"label": "Enter", "matrix": [13, 3], "x": 12.75, "y": 3.5, "w": 2.25}, - {"matrix": [16, 2], "x": 18.5, "y": 3.5}, - {"matrix": [17, 2], "x": 19.5, "y": 3.5}, - {"matrix": [18, 2], "x": 20.5, "y": 3.5}, - {"matrix": [19, 3], "x": 21.5, "y": 3.5}, + {"label": "4", "matrix": [16, 2], "x": 18.5, "y": 3.5}, + {"label": "5", "matrix": [17, 2], "x": 19.5, "y": 3.5}, + {"label": "6", "matrix": [18, 2], "x": 20.5, "y": 3.5}, - {"matrix": [0, 4], "x": 0, "y": 4.5, "w": 2.25}, - {"matrix": [1, 4], "x": 2.25, "y": 4.5}, - {"matrix": [2, 4], "x": 3.25, "y": 4.5}, - {"matrix": [3, 4], "x": 4.25, "y": 4.5}, - {"matrix": [4, 4], "x": 5.25, "y": 4.5}, - {"matrix": [5, 4], "x": 6.25, "y": 4.5}, - {"matrix": [6, 4], "x": 7.25, "y": 4.5}, - {"matrix": [7, 4], "x": 8.25, "y": 4.5}, - {"matrix": [8, 4], "x": 9.25, "y": 4.5}, - {"matrix": [9, 4], "x": 10.25, "y": 4.5}, - {"matrix": [10, 4], "x": 11.25, "y": 4.5}, - {"matrix": [13, 4], "x": 12.25, "y": 4.5, "w": 2.75}, + {"label": "Shift", "matrix": [0, 4], "x": 0, "y": 4.5, "w": 2.25}, + {"label": "Z", "matrix": [1, 4], "x": 2.25, "y": 4.5}, + {"label": "X", "matrix": [2, 4], "x": 3.25, "y": 4.5}, + {"label": "C", "matrix": [3, 4], "x": 4.25, "y": 4.5}, + {"label": "V", "matrix": [4, 4], "x": 5.25, "y": 4.5}, + {"label": "B", "matrix": [5, 4], "x": 6.25, "y": 4.5}, + {"label": "N", "matrix": [6, 4], "x": 7.25, "y": 4.5}, + {"label": "M", "matrix": [7, 4], "x": 8.25, "y": 4.5}, + {"label": ",", "matrix": [8, 4], "x": 9.25, "y": 4.5}, + {"label": ".", "matrix": [9, 4], "x": 10.25, "y": 4.5}, + {"label": "/", "matrix": [10, 4], "x": 11.25, "y": 4.5}, + {"label": "Shift", "matrix": [13, 4], "x": 12.25, "y": 4.5, "w": 2.75}, - {"matrix": [15, 5], "x": 16.25, "y": 4.5}, + {"label": "\u2191", "matrix": [15, 5], "x": 16.25, "y": 4.5}, - {"matrix": [16, 3], "x": 18.5, "y": 4.5}, - {"matrix": [17, 3], "x": 19.5, "y": 4.5}, - {"matrix": [18, 3], "x": 20.5, "y": 4.5}, - {"matrix": [19, 2], "x": 21.5, "y": 4.5}, + {"label": "1", "matrix": [16, 3], "x": 18.5, "y": 4.5}, + {"label": "2", "matrix": [17, 3], "x": 19.5, "y": 4.5}, + {"label": "3", "matrix": [18, 3], "x": 20.5, "y": 4.5}, + {"label": "Enter", "matrix": [19, 2], "x": 21.5, "y": 4.5, "h": 2}, - {"matrix": [0, 5], "x": 0, "y": 5.5, "w": 1.25}, - {"matrix": [1, 5], "x": 1.25, "y": 5.5, "w": 1.25}, - {"matrix": [2, 5], "x": 2.5, "y": 5.5, "w": 1.25}, - {"matrix": [3, 5], "x": 3.75, "y": 5.5, "w": 1.25}, - {"matrix": [4, 5], "x": 5, "y": 5.5, "w": 1.25}, - {"matrix": [5, 5], "x": 6.25, "y": 5.5, "w": 1.25}, - {"matrix": [6, 5], "x": 7.5, "y": 5.5, "w": 1.25}, - {"matrix": [7, 5], "x": 8.75, "y": 5.5, "w": 1.25}, - {"matrix": [9, 5], "x": 10, "y": 5.5, "w": 1.25}, - {"matrix": [10, 5], "x": 11.25, "y": 5.5, "w": 1.25}, - {"matrix": [12, 3], "x": 12.5, "y": 5.5, "w": 1.25}, - {"matrix": [13, 5], "x": 13.75, "y": 5.5, "w": 1.25}, + {"label": "Ctrl", "matrix": [0, 5], "x": 0, "y": 5.5, "w": 1.25}, + {"label": "GUI", "matrix": [1, 5], "x": 1.25, "y": 5.5, "w": 1.25}, + {"label": "Alt", "matrix": [2, 5], "x": 2.5, "y": 5.5, "w": 1.25}, + {"label": "Space", "matrix": [5, 5], "x": 3.75, "y": 5.5, "w": 6.25}, + {"label": "Alt", "matrix": [9, 5], "x": 10, "y": 5.5, "w": 1.25}, + {"label": "GUI", "matrix": [10, 5], "x": 11.25, "y": 5.5, "w": 1.25}, + {"label": "Space", "matrix": [12, 3], "x": 12.5, "y": 5.5, "w": 1.25}, + {"label": "Ctrl", "matrix": [13, 5], "x": 13.75, "y": 5.5, "w": 1.25}, - {"matrix": [14, 3], "x": 15.25, "y": 5.5}, - {"matrix": [14, 4], "x": 16.25, "y": 5.5}, - {"matrix": [14, 5], "x": 17.25, "y": 5.5}, + {"label": "\u2190", "matrix": [14, 3], "x": 15.25, "y": 5.5}, + {"label": "\u2193", "matrix": [14, 4], "x": 16.25, "y": 5.5}, + {"label": "\u2192", "matrix": [14, 5], "x": 17.25, "y": 5.5}, - {"matrix": [16, 4], "x": 18.5, "y": 5.5}, - {"matrix": [17, 4], "x": 19.5, "y": 5.5}, - {"matrix": [18, 4], "x": 20.5, "y": 5.5}, - {"matrix": [19, 4], "x": 21.5, "y": 5.5} + {"label": "0", "matrix": [16, 4], "x": 18.5, "y": 5.5, "w": 2}, + {"label": ".", "matrix": [18, 4], "x": 20.5, "y": 5.5} ] } } diff --git a/keyboards/kakunpc/thedogkeyboard/keymaps/default/keymap.c b/keyboards/kakunpc/thedogkeyboard/keymaps/default/keymap.c index 4f7a9aa9a2..1bc31e5bdf 100644 --- a/keyboards/kakunpc/thedogkeyboard/keymaps/default/keymap.c +++ b/keyboards/kakunpc/thedogkeyboard/keymaps/default/keymap.c @@ -17,12 +17,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [0] = LAYOUT_all( /* Base */ - KC_ESC, KC_F1,KC_F2,KC_F3,KC_F4, KC_F5,KC_F6,KC_F7,KC_F8, KC_F9,KC_F10,KC_F11,KC_F12, KC_PSCR,KC_SCRL,KC_PAUSE, + KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SCRL, KC_PAUS, - KC_GRV,KC_1,KC_2,KC_3,KC_4,KC_5,KC_6,KC_7,KC_8,KC_9,KC_0,KC_MINS,KC_EQL,KC_BSPC, KC_INS, KC_HOME, KC_PGUP, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, - KC_TAB,KC_Q,KC_W,KC_E,KC_R,KC_T,KC_Y,KC_U,KC_I,KC_O,KC_P,KC_LBRC,KC_RBRC,KC_BSLS, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS, - KC_LCAP, KC_A,KC_S,KC_D,KC_F,KC_G,KC_H,KC_J,KC_K,KC_L,KC_SCLN,KC_QUOT ,KC_ENT, KC_P4, KC_P5, KC_P6, KC_NO, - KC_LSFT, KC_Z,KC_X,KC_C,KC_V,KC_B,KC_N,KC_M,KC_COMM,KC_DOT,KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT, - KC_LCTL,KC_LGUI,KC_LALT,KC_NO,KC_NO,KC_SPC,KC_NO,KC_NO,KC_RALT,KC_RGUI,KC_SPC,KC_RCTL, KC_LEFT,KC_DOWN,KC_RIGHT, KC_P0, KC_NO, KC_PDOT, KC_NO + KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, + KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS, + KC_LCAP, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6, KC_NO, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT, + KC_LCTL, KC_LGUI, KC_LALT, KC_NO, KC_NO, KC_SPC, KC_NO, KC_NO, KC_RALT, KC_RGUI, KC_SPC, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_NO, KC_PDOT, KC_NO ) }; diff --git a/keyboards/kakunpc/thedogkeyboard/matrix_diagram.md b/keyboards/kakunpc/thedogkeyboard/matrix_diagram.md new file mode 100644 index 0000000000..3009c2c1ea --- /dev/null +++ b/keyboards/kakunpc/thedogkeyboard/matrix_diagram.md @@ -0,0 +1,23 @@ +# Matrix Diagram for TheDogKeyboard + +Note that keys that are physically in columns are wired electrically as rows, and vice versa. + +``` +┌───┐ ┌───┬───┬───┬───┐ ┌───┬───┬───┬───┐ ┌───┬───┬───┬───┐┌───┬───┬───┐ +│00 │ │10 │20 │30 │40 │ │50 │60 │70 │80 │ │90 │A0 │B0 │C0 ││D0 │E0 │F0 │ +└───┘ └───┴───┴───┴───┘ └───┴───┴───┴───┘ └───┴───┴───┴───┘└───┴───┴───┘ +┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐┌───┬───┬───┐┌───┬───┬───┬───┐ +│01 │11 │21 │31 │41 │51 │61 │71 │81 │91 │A1 │B1 │C1 │D1 ││E1 │F2 │F1 ││G0 │H0 │I0 │J0 │ +├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤├───┼───┼───┤├───┼───┼───┼───┤ ┌───┐ +│02 │12 │22 │32 │42 │52 │62 │72 │82 │92 │A2 │B2 │C2 │D2 ││E2 │F4 │F3 ││G1 │H1 │I1 │J1 │ │ │ +├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤└───┴───┴───┘├───┼───┼───┼───┤ │J1 │ 2u Numpad Plus +│03 │13 │23 │33 │43 │53 │63 │73 │83 │93 │A3 │B3 │D3 │ │G2 │H2 │I2 │J3 │ │ │ +├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤ ┌───┐ ├───┼───┼───┼───┤ ├───┤ +│04 │14 │24 │34 │44 │54 │64 │74 │84 │94 │A4 │D4 │ │F5 │ │G3 │H3 │I3 │J2 │ │ │ +├────┬───┴┬──┴─┬─┴──┬┴───┼───┴┬──┴─┬─┴──┬┴───┼───┴┬────┬────┤┌───┼───┼───┐├───┼───┼───┼───┤ │J2 │ 2u Numpad Enter +│05 │15 │25 │35 │45 │55 │65 │75 │95 │A5 │C3 │D5 ││E3 │E4 │E5 ││G4 │H4 │I4 │J4 │ │ │ +└────┴────┴────┴────┴────┴────┴────┴────┴────┴────┴────┴────┘└───┴───┴───┘└───┴───┴───┴───┘ └───┘ +┌────┬────┬────┬────────────────────────┬────┬────┬────┬────┐ ┌───────┐ +│05 │15 │25 │55 │95 │A5 │C3 │D5 │ Standard │G4 │ 2u Numpad Zero +└────┴────┴────┴────────────────────────┴────┴────┴────┴────┘ └───────┘ +```