diff options
author | James Young <18669334+noroadsleft@users.noreply.github.com> | 2023-04-28 09:34:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-28 09:34:34 -0700 |
commit | 1ead4b55950de02e25cb1cbc21e17c09ea42f4b1 (patch) | |
tree | 183baf712eb1421093ac00e4f807570761b016f4 /keyboards/cest73 | |
parent | c760cbf410876253695f95b131a685c4399ae698 (diff) |
cest73 TKM Layout Macro Additions (#20583)
* add matrix_diagram.md
* info.json: apply friendly formatting
* add LAYOUT_ansi_split_bs with reference keymap
* add LAYOUT_iso_split_bs with reference keymap
Diffstat (limited to 'keyboards/cest73')
-rw-r--r-- | keyboards/cest73/tkm/info.json | 499 | ||||
-rw-r--r-- | keyboards/cest73/tkm/keymaps/default_ansi_split_bs/keymap.c | 79 | ||||
-rw-r--r-- | keyboards/cest73/tkm/keymaps/default_iso_split_bs/keymap.c | 79 | ||||
-rw-r--r-- | keyboards/cest73/tkm/matrix_diagram.md | 27 |
4 files changed, 553 insertions, 131 deletions
diff --git a/keyboards/cest73/tkm/info.json b/keyboards/cest73/tkm/info.json index 1acd5b9fb4..234d31d75a 100644 --- a/keyboards/cest73/tkm/info.json +++ b/keyboards/cest73/tkm/info.json @@ -27,137 +27,374 @@ "layouts": { "LAYOUT_all": { "layout": [ - {"matrix": [0, 0], "x": 0, "y": 0}, - {"matrix": [1, 0], "x": 1, "y": 0}, - {"matrix": [0, 1], "x": 2, "y": 0}, - {"matrix": [1, 1], "x": 3, "y": 0}, - - {"matrix": [0, 2], "x": 4.5, "y": 0}, - - {"matrix": [1, 2], "x": 6, "y": 0}, - {"matrix": [0, 3], "x": 7, "y": 0}, - {"matrix": [1, 3], "x": 8, "y": 0}, - {"matrix": [0, 4], "x": 9, "y": 0}, - - {"matrix": [1, 4], "x": 10.25, "y": 0}, - {"matrix": [1, 5], "x": 11.25, "y": 0}, - {"matrix": [0, 5], "x": 12.25, "y": 0}, - {"matrix": [0, 6], "x": 13.25, "y": 0}, - - {"matrix": [1, 6], "x": 14.5, "y": 0}, - {"matrix": [0, 7], "x": 15.5, "y": 0}, - {"matrix": [1, 7], "x": 16.5, "y": 0}, - {"matrix": [0, 8], "x": 17.5, "y": 0}, - - {"matrix": [1, 8], "x": 19, "y": 0}, - {"matrix": [0, 9], "x": 20, "y": 0}, - - {"matrix": [2, 0], "x": 0, "y": 1.5}, - {"matrix": [3, 0], "x": 1, "y": 1.5}, - {"matrix": [2, 1], "x": 2, "y": 1.5}, - {"matrix": [3, 1], "x": 3, "y": 1.5}, - - {"matrix": [2, 2], "x": 4.5, "y": 1.5}, - {"matrix": [3, 2], "x": 5.5, "y": 1.5}, - {"matrix": [2, 3], "x": 6.5, "y": 1.5}, - {"matrix": [3, 3], "x": 7.5, "y": 1.5}, - {"matrix": [2, 4], "x": 8.5, "y": 1.5}, - {"matrix": [3, 4], "x": 9.5, "y": 1.5}, - {"matrix": [3, 5], "x": 10.5, "y": 1.5}, - {"matrix": [2, 5], "x": 11.5, "y": 1.5}, - {"matrix": [2, 6], "x": 12.5, "y": 1.5}, - {"matrix": [3, 6], "x": 13.5, "y": 1.5}, - {"matrix": [2, 7], "x": 14.5, "y": 1.5}, - {"matrix": [3, 7], "x": 15.5, "y": 1.5}, - {"matrix": [2, 8], "x": 16.5, "y": 1.5}, - {"matrix": [1, 9], "x": 17.5, "y": 1.5}, - {"matrix": [3, 8], "x": 18.5, "y": 1.5}, - - {"matrix": [2, 9], "x": 20, "y": 1.5}, - - {"matrix": [4, 0], "x": 0, "y": 2.5}, - {"matrix": [5, 0], "x": 1, "y": 2.5}, - {"matrix": [4, 1], "x": 2, "y": 2.5}, - {"matrix": [5, 1], "x": 3, "y": 2.5}, - - {"matrix": [4, 2], "x": 4.5, "y": 2.5, "w": 1.5}, - {"matrix": [5, 2], "x": 6, "y": 2.5}, - {"matrix": [4, 3], "x": 7, "y": 2.5}, - {"matrix": [5, 3], "x": 8, "y": 2.5}, - {"matrix": [4, 4], "x": 9, "y": 2.5}, - {"matrix": [5, 4], "x": 10, "y": 2.5}, - {"matrix": [5, 5], "x": 11, "y": 2.5}, - {"matrix": [4, 5], "x": 12, "y": 2.5}, - {"matrix": [4, 6], "x": 13, "y": 2.5}, - {"matrix": [5, 6], "x": 14, "y": 2.5}, - {"matrix": [4, 7], "x": 15, "y": 2.5}, - {"matrix": [5, 7], "x": 16, "y": 2.5}, - {"matrix": [4, 8], "x": 17, "y": 2.5}, - {"matrix": [5, 8], "x": 18, "y": 2.5, "w": 1.5}, - - {"matrix": [4, 9], "x": 20, "y": 2.5}, - - {"matrix": [6, 0], "x": 0, "y": 3.5}, - {"matrix": [7, 0], "x": 1, "y": 3.5}, - {"matrix": [6, 1], "x": 2, "y": 3.5}, - {"matrix": [7, 1], "x": 3, "y": 3.5}, - - {"matrix": [6, 2], "x": 4.5, "y": 3.5, "w": 1.25}, - {"matrix": [7, 2], "x": 6.25, "y": 3.5}, - {"matrix": [6, 3], "x": 7.25, "y": 3.5}, - {"matrix": [7, 3], "x": 8.25, "y": 3.5}, - {"matrix": [6, 4], "x": 9.25, "y": 3.5}, - {"matrix": [7, 4], "x": 10.25, "y": 3.5}, - {"matrix": [7, 5], "x": 11.25, "y": 3.5}, - {"matrix": [6, 5], "x": 12.25, "y": 3.5}, - {"matrix": [6, 6], "x": 13.25, "y": 3.5}, - {"matrix": [7, 6], "x": 14.25, "y": 3.5}, - {"matrix": [6, 7], "x": 15.25, "y": 3.5}, - {"matrix": [7, 7], "x": 16.25, "y": 3.5}, - {"matrix": [6, 8], "x": 17.25, "y": 3.5}, - {"matrix": [7, 8], "x": 18.25, "y": 3.5, "w": 1.25}, - - {"matrix": [6, 9], "x": 20, "y": 3.5}, - - {"matrix": [3, 9], "x": 0, "y": 4.5}, - {"matrix": [9, 0], "x": 1, "y": 4.5}, - {"matrix": [8, 1], "x": 2, "y": 4.5}, - {"matrix": [9, 1], "x": 3, "y": 4.5}, - - {"matrix": [8, 2], "x": 4.5, "y": 4.5, "w": 1.25}, - {"matrix": [9, 2], "x": 5.75, "y": 4.5}, - {"matrix": [8, 3], "x": 6.75, "y": 4.5}, - {"matrix": [9, 3], "x": 7.75, "y": 4.5}, - {"matrix": [8, 4], "x": 8.75, "y": 4.5}, - {"matrix": [9, 4], "x": 9.75, "y": 4.5}, - {"matrix": [9, 5], "x": 10.75, "y": 4.5}, - {"matrix": [8, 5], "x": 11.75, "y": 4.5}, - {"matrix": [8, 6], "x": 12.75, "y": 4.5}, - {"matrix": [9, 6], "x": 13.75, "y": 4.5}, - {"matrix": [8, 7], "x": 14.75, "y": 4.5}, - {"matrix": [9, 7], "x": 15.75, "y": 4.5}, - {"matrix": [8, 8], "x": 16.75, "y": 4.5, "w": 1.75}, - - {"matrix": [9, 8], "x": 18.75, "y": 4.75}, - - {"matrix": [8, 9], "x": 20, "y": 4.5}, - - {"matrix": [8, 0], "x": 0, "y": 5.5}, - {"matrix": [10, 0], "x": 1, "y": 5.5}, - {"matrix": [5, 9], "x": 2, "y": 5.5}, - {"matrix": [10, 1], "x": 3, "y": 5.5}, - - {"matrix": [10, 2], "x": 4.5, "y": 5.5, "w": 1.25}, - {"matrix": [10, 3], "x": 5.75, "y": 5.5}, - {"matrix": [10, 4], "x": 6.75, "y": 5.5, "w": 1.25}, - {"matrix": [10, 5], "x": 8, "y": 5.5, "w": 6.25}, - {"matrix": [10, 6], "x": 14.25, "y": 5.5}, - {"matrix": [10, 7], "x": 15.25, "y": 5.5}, - {"matrix": [10, 8], "x": 16.25, "y": 5.5, "w": 1.25}, - - {"matrix": [10, 9], "x": 17.75, "y": 5.75}, - {"matrix": [9, 9], "x": 18.75, "y": 5.75}, - {"matrix": [7, 9], "x": 19.75, "y": 5.75} + {"label": "Fn", "matrix": [0, 0], "x": 0, "y": 0}, + {"label": "Print Screen", "matrix": [1, 0], "x": 1, "y": 0}, + {"label": "Scroll Lock", "matrix": [0, 1], "x": 2, "y": 0}, + {"label": "Pause", "matrix": [1, 1], "x": 3, "y": 0}, + + {"label": "Esc", "matrix": [0, 2], "x": 4.5, "y": 0}, + + {"label": "F1", "matrix": [1, 2], "x": 6, "y": 0}, + {"label": "F2", "matrix": [0, 3], "x": 7, "y": 0}, + {"label": "F3", "matrix": [1, 3], "x": 8, "y": 0}, + {"label": "F4", "matrix": [0, 4], "x": 9, "y": 0}, + + {"label": "F5", "matrix": [1, 4], "x": 10.25, "y": 0}, + {"label": "F6", "matrix": [1, 5], "x": 11.25, "y": 0}, + {"label": "F7", "matrix": [0, 5], "x": 12.25, "y": 0}, + {"label": "F8", "matrix": [0, 6], "x": 13.25, "y": 0}, + + {"label": "F9", "matrix": [1, 6], "x": 14.5, "y": 0}, + {"label": "F10", "matrix": [0, 7], "x": 15.5, "y": 0}, + {"label": "F11", "matrix": [1, 7], "x": 16.5, "y": 0}, + {"label": "F12", "matrix": [0, 8], "x": 17.5, "y": 0}, + + {"label": "Home", "matrix": [1, 8], "x": 19, "y": 0}, + {"label": "Page Up", "matrix": [0, 9], "x": 20, "y": 0}, + + {"label": "-", "matrix": [2, 0], "x": 0, "y": 1.5}, + {"label": "*", "matrix": [3, 0], "x": 1, "y": 1.5}, + {"label": "/", "matrix": [2, 1], "x": 2, "y": 1.5}, + {"label": "Num Lock", "matrix": [3, 1], "x": 3, "y": 1.5}, + + {"label": "`", "matrix": [2, 2], "x": 4.5, "y": 1.5}, + {"label": "1", "matrix": [3, 2], "x": 5.5, "y": 1.5}, + {"label": "2", "matrix": [2, 3], "x": 6.5, "y": 1.5}, + {"label": "3", "matrix": [3, 3], "x": 7.5, "y": 1.5}, + {"label": "4", "matrix": [2, 4], "x": 8.5, "y": 1.5}, + {"label": "5", "matrix": [3, 4], "x": 9.5, "y": 1.5}, + {"label": "6", "matrix": [3, 5], "x": 10.5, "y": 1.5}, + {"label": "7", "matrix": [2, 5], "x": 11.5, "y": 1.5}, + {"label": "8", "matrix": [2, 6], "x": 12.5, "y": 1.5}, + {"label": "9", "matrix": [3, 6], "x": 13.5, "y": 1.5}, + {"label": "0", "matrix": [2, 7], "x": 14.5, "y": 1.5}, + {"label": "-", "matrix": [3, 7], "x": 15.5, "y": 1.5}, + {"label": "=", "matrix": [2, 8], "x": 16.5, "y": 1.5}, + {"label": "\\", "matrix": [1, 9], "x": 17.5, "y": 1.5}, + {"label": "Backspace", "matrix": [3, 8], "x": 18.5, "y": 1.5}, + + {"label": "Insert", "matrix": [2, 9], "x": 20, "y": 1.5}, + + {"label": "+", "matrix": [4, 0], "x": 0, "y": 2.5}, + {"label": "9", "matrix": [5, 0], "x": 1, "y": 2.5}, + {"label": "8", "matrix": [4, 1], "x": 2, "y": 2.5}, + {"label": "7", "matrix": [5, 1], "x": 3, "y": 2.5}, + + {"label": "Tab", "matrix": [4, 2], "x": 4.5, "y": 2.5, "w": 1.5}, + {"label": "Q", "matrix": [5, 2], "x": 6, "y": 2.5}, + {"label": "W", "matrix": [4, 3], "x": 7, "y": 2.5}, + {"label": "E", "matrix": [5, 3], "x": 8, "y": 2.5}, + {"label": "R", "matrix": [4, 4], "x": 9, "y": 2.5}, + {"label": "T", "matrix": [5, 4], "x": 10, "y": 2.5}, + {"label": "Y", "matrix": [5, 5], "x": 11, "y": 2.5}, + {"label": "U", "matrix": [4, 5], "x": 12, "y": 2.5}, + {"label": "I", "matrix": [4, 6], "x": 13, "y": 2.5}, + {"label": "O", "matrix": [5, 6], "x": 14, "y": 2.5}, + {"label": "P", "matrix": [4, 7], "x": 15, "y": 2.5}, + {"label": "[", "matrix": [5, 7], "x": 16, "y": 2.5}, + {"label": "]", "matrix": [4, 8], "x": 17, "y": 2.5}, + {"label": "\\", "matrix": [5, 8], "x": 18, "y": 2.5, "w": 1.5}, + + {"label": "Delete", "matrix": [4, 9], "x": 20, "y": 2.5}, + + {"label": "=", "matrix": [6, 0], "x": 0, "y": 3.5}, + {"label": "6", "matrix": [7, 0], "x": 1, "y": 3.5}, + {"label": "5", "matrix": [6, 1], "x": 2, "y": 3.5}, + {"label": "4", "matrix": [7, 1], "x": 3, "y": 3.5}, + + {"label": "Caps Lock", "matrix": [6, 2], "x": 4.5, "y": 3.5, "w": 1.25}, + {"label": "A", "matrix": [7, 2], "x": 6.25, "y": 3.5}, + {"label": "S", "matrix": [6, 3], "x": 7.25, "y": 3.5}, + {"label": "D", "matrix": [7, 3], "x": 8.25, "y": 3.5}, + {"label": "F", "matrix": [6, 4], "x": 9.25, "y": 3.5}, + {"label": "G", "matrix": [7, 4], "x": 10.25, "y": 3.5}, + {"label": "H", "matrix": [7, 5], "x": 11.25, "y": 3.5}, + {"label": "J", "matrix": [6, 5], "x": 12.25, "y": 3.5}, + {"label": "K", "matrix": [6, 6], "x": 13.25, "y": 3.5}, + {"label": "L", "matrix": [7, 6], "x": 14.25, "y": 3.5}, + {"label": ";", "matrix": [6, 7], "x": 15.25, "y": 3.5}, + {"label": "'", "matrix": [7, 7], "x": 16.25, "y": 3.5}, + {"label": "#", "matrix": [6, 8], "x": 17.25, "y": 3.5}, + {"label": "Enter", "matrix": [7, 8], "x": 18.25, "y": 3.5, "w": 1.25}, + + {"label": "Page Down", "matrix": [6, 9], "x": 20, "y": 3.5}, + + {"label": "Tab", "matrix": [3, 9], "x": 0, "y": 4.5}, + {"label": "3", "matrix": [9, 0], "x": 1, "y": 4.5}, + {"label": "2", "matrix": [8, 1], "x": 2, "y": 4.5}, + {"label": "1", "matrix": [9, 1], "x": 3, "y": 4.5}, + + {"label": "Shift", "matrix": [8, 2], "x": 4.5, "y": 4.5, "w": 1.25}, + {"label": "\\", "matrix": [9, 2], "x": 5.75, "y": 4.5}, + {"label": "Z", "matrix": [8, 3], "x": 6.75, "y": 4.5}, + {"label": "X", "matrix": [9, 3], "x": 7.75, "y": 4.5}, + {"label": "C", "matrix": [8, 4], "x": 8.75, "y": 4.5}, + {"label": "V", "matrix": [9, 4], "x": 9.75, "y": 4.5}, + {"label": "B", "matrix": [9, 5], "x": 10.75, "y": 4.5}, + {"label": "N", "matrix": [8, 5], "x": 11.75, "y": 4.5}, + {"label": "M", "matrix": [8, 6], "x": 12.75, "y": 4.5}, + {"label": ",", "matrix": [9, 6], "x": 13.75, "y": 4.5}, + {"label": ".", "matrix": [8, 7], "x": 14.75, "y": 4.5}, + {"label": "/", "matrix": [9, 7], "x": 15.75, "y": 4.5}, + {"label": "Shift", "matrix": [8, 8], "x": 16.75, "y": 4.5, "w": 1.75}, + + {"label": "\u2191", "matrix": [9, 8], "x": 18.75, "y": 4.75}, + + {"label": "End", "matrix": [8, 9], "x": 20, "y": 4.5}, + + {"label": "Enter", "matrix": [8, 0], "x": 0, "y": 5.5}, + {"label": ".", "matrix": [10, 0], "x": 1, "y": 5.5}, + {"label": ",", "matrix": [5, 9], "x": 2, "y": 5.5}, + {"label": "0", "matrix": [10, 1], "x": 3, "y": 5.5}, + + {"label": "Ctrl", "matrix": [10, 2], "x": 4.5, "y": 5.5, "w": 1.25}, + {"label": "GUI", "matrix": [10, 3], "x": 5.75, "y": 5.5}, + {"label": "Alt", "matrix": [10, 4], "x": 6.75, "y": 5.5, "w": 1.25}, + {"label": "Space", "matrix": [10, 5], "x": 8, "y": 5.5, "w": 6.25}, + {"label": "Alt", "matrix": [10, 6], "x": 14.25, "y": 5.5}, + {"label": "Menu", "matrix": [10, 7], "x": 15.25, "y": 5.5}, + {"label": "Ctrl", "matrix": [10, 8], "x": 16.25, "y": 5.5, "w": 1.25}, + + {"label": "\u2190", "matrix": [10, 9], "x": 17.75, "y": 5.75}, + {"label": "\u2193", "matrix": [9, 9], "x": 18.75, "y": 5.75}, + {"label": "\u2192", "matrix": [7, 9], "x": 19.75, "y": 5.75} + ] + }, + + "LAYOUT_ansi_split_bs": { + "layout": [ + { "label": "Fn", "matrix": [0, 0], "x": 0, "y": 0 }, + { "label": "PrtSc", "matrix": [1, 0], "x": 1, "y": 0 }, + { "label": "Scroll Lock", "matrix": [0, 1], "x": 2, "y": 0 }, + { "label": "Pause", "matrix": [1, 1], "x": 3, "y": 0 }, + { "label": "Esc", "matrix": [0, 2], "x": 4.5, "y": 0 }, + { "label": "F1", "matrix": [1, 2], "x": 6, "y": 0 }, + { "label": "F2", "matrix": [0, 3], "x": 7, "y": 0 }, + { "label": "F3", "matrix": [1, 3], "x": 8, "y": 0 }, + { "label": "F4", "matrix": [0, 4], "x": 9, "y": 0 }, + { "label": "F5", "matrix": [1, 4], "x": 10.25, "y": 0 }, + { "label": "F6", "matrix": [1, 5], "x": 11.25, "y": 0 }, + { "label": "F7", "matrix": [0, 5], "x": 12.25, "y": 0 }, + { "label": "F8", "matrix": [0, 6], "x": 13.25, "y": 0 }, + { "label": "F9", "matrix": [1, 6], "x": 14.5, "y": 0 }, + { "label": "F10", "matrix": [0, 7], "x": 15.5, "y": 0 }, + { "label": "F11", "matrix": [1, 7], "x": 16.5, "y": 0 }, + { "label": "F12", "matrix": [0, 8], "x": 17.5, "y": 0 }, + { "label": "Home", "matrix": [1, 8], "x": 19, "y": 0 }, + { "label": "PgUp", "matrix": [0, 9], "x": 20, "y": 0 }, + + { "label": "-", "matrix": [2, 0], "x": 0, "y": 1.5 }, + { "label": "*", "matrix": [3, 0], "x": 1, "y": 1.5 }, + { "label": "/", "matrix": [2, 1], "x": 2, "y": 1.5 }, + { "label": "Num Lock", "matrix": [3, 1], "x": 3, "y": 1.5 }, + { "label": "~", "matrix": [2, 2], "x": 4.5, "y": 1.5 }, + { "label": "!", "matrix": [3, 2], "x": 5.5, "y": 1.5 }, + { "label": "@", "matrix": [2, 3], "x": 6.5, "y": 1.5 }, + { "label": "#", "matrix": [3, 3], "x": 7.5, "y": 1.5 }, + { "label": "$", "matrix": [2, 4], "x": 8.5, "y": 1.5 }, + { "label": "%", "matrix": [3, 4], "x": 9.5, "y": 1.5 }, + { "label": "^", "matrix": [3, 5], "x": 10.5, "y": 1.5 }, + { "label": "&", "matrix": [2, 5], "x": 11.5, "y": 1.5 }, + { "label": "*", "matrix": [2, 6], "x": 12.5, "y": 1.5 }, + { "label": "(", "matrix": [3, 6], "x": 13.5, "y": 1.5 }, + { "label": ")", "matrix": [2, 7], "x": 14.5, "y": 1.5 }, + { "label": "_", "matrix": [3, 7], "x": 15.5, "y": 1.5 }, + { "label": "+", "matrix": [2, 8], "x": 16.5, "y": 1.5 }, + { "label": "Backspace", "matrix": [1, 9], "x": 17.5, "y": 1.5 }, + { "label": "Backspace", "matrix": [3, 8], "x": 18.5, "y": 1.5 }, + { "label": "Insert", "matrix": [2, 9], "x": 20, "y": 1.5 }, + + { "label": "+", "matrix": [4, 0], "x": 0, "y": 2.5 }, + { "label": "9", "matrix": [5, 0], "x": 1, "y": 2.5 }, + { "label": "8", "matrix": [4, 1], "x": 2, "y": 2.5 }, + { "label": "7", "matrix": [5, 1], "x": 3, "y": 2.5 }, + { "label": "Tab", "matrix": [4, 2], "x": 4.5, "y": 2.5, "w": 1.5 }, + { "label": "Q", "matrix": [5, 2], "x": 6, "y": 2.5 }, + { "label": "W", "matrix": [4, 3], "x": 7, "y": 2.5 }, + { "label": "E", "matrix": [5, 3], "x": 8, "y": 2.5 }, + { "label": "R", "matrix": [4, 4], "x": 9, "y": 2.5 }, + { "label": "T", "matrix": [5, 4], "x": 10, "y": 2.5 }, + { "label": "Y", "matrix": [5, 5], "x": 11, "y": 2.5 }, + { "label": "U", "matrix": [4, 5], "x": 12, "y": 2.5 }, + { "label": "I", "matrix": [4, 6], "x": 13, "y": 2.5 }, + { "label": "O", "matrix": [5, 6], "x": 14, "y": 2.5 }, + { "label": "P", "matrix": [4, 7], "x": 15, "y": 2.5 }, + { "label": "{", "matrix": [5, 7], "x": 16, "y": 2.5 }, + { "label": "}", "matrix": [4, 8], "x": 17, "y": 2.5 }, + { "label": "|", "matrix": [5, 8], "x": 18, "y": 2.5, "w": 1.5 }, + { "label": "Delete", "matrix": [4, 9], "x": 20, "y": 2.5 }, + + { "label": "+", "matrix": [6, 0], "x": 0, "y": 3.5 }, + { "label": "6", "matrix": [7, 0], "x": 1, "y": 3.5 }, + { "label": "5", "matrix": [6, 1], "x": 2, "y": 3.5 }, + { "label": "4", "matrix": [7, 1], "x": 3, "y": 3.5 }, + { "label": "CAPS", "matrix": [6, 2], "x": 4.5, "y": 3.5, "w": 1.25 }, + { "label": "A", "matrix": [7, 2], "x": 6.25, "y": 3.5 }, + { "label": "S", "matrix": [6, 3], "x": 7.25, "y": 3.5 }, + { "label": "D", "matrix": [7, 3], "x": 8.25, "y": 3.5 }, + { "label": "F", "matrix": [6, 4], "x": 9.25, "y": 3.5 }, + { "label": "G", "matrix": [7, 4], "x": 10.25, "y": 3.5 }, + { "label": "H", "matrix": [7, 5], "x": 11.25, "y": 3.5 }, + { "label": "J", "matrix": [6, 5], "x": 12.25, "y": 3.5 }, + { "label": "K", "matrix": [6, 6], "x": 13.25, "y": 3.5 }, + { "label": "L", "matrix": [7, 6], "x": 14.25, "y": 3.5 }, + { "label": ":", "matrix": [6, 7], "x": 15.25, "y": 3.5 }, + { "label": "\"", "matrix": [7, 7], "x": 16.25, "y": 3.5 }, + { "label": "Enter", "matrix": [7, 8], "x": 17.25, "y": 3.5, "w": 2.25 }, + { "label": "PgDn", "matrix": [6, 9], "x": 20, "y": 3.5 }, + + { "label": "Enter", "matrix": [3, 9], "x": 0, "y": 4.5 }, + { "label": "3", "matrix": [9, 0], "x": 1, "y": 4.5 }, + { "label": "2", "matrix": [8, 1], "x": 2, "y": 4.5 }, + { "label": "1", "matrix": [9, 1], "x": 3, "y": 4.5 }, + { "label": "Shift", "matrix": [8, 2], "x": 4.5, "y": 4.5, "w": 2.25 }, + { "label": "Z", "matrix": [8, 3], "x": 6.75, "y": 4.5 }, + { "label": "X", "matrix": [9, 3], "x": 7.75, "y": 4.5 }, + { "label": "C", "matrix": [8, 4], "x": 8.75, "y": 4.5 }, + { "label": "V", "matrix": [9, 4], "x": 9.75, "y": 4.5 }, + { "label": "B", "matrix": [9, 5], "x": 10.75, "y": 4.5 }, + { "label": "N", "matrix": [8, 5], "x": 11.75, "y": 4.5 }, + { "label": "M", "matrix": [8, 6], "x": 12.75, "y": 4.5 }, + { "label": "<", "matrix": [9, 6], "x": 13.75, "y": 4.5 }, + { "label": ">", "matrix": [8, 7], "x": 14.75, "y": 4.5 }, + { "label": "?", "matrix": [9, 7], "x": 15.75, "y": 4.5 }, + { "label": "Shift", "matrix": [8, 8], "x": 16.75, "y": 4.5, "w": 1.75 }, + { "label": "\u2191", "matrix": [9, 8], "x": 18.75, "y": 4.75 }, + { "label": "End", "matrix": [8, 9], "x": 20, "y": 4.5 }, + + { "label": "Enter", "matrix": [8, 0], "x": 0, "y": 5.5 }, + { "label": ".", "matrix": [10, 0], "x": 1, "y": 5.5 }, + { "label": ",", "matrix": [5, 9], "x": 2, "y": 5.5 }, + { "label": "0", "matrix": [10, 1], "x": 3, "y": 5.5 }, + { "label": "Ctrl", "matrix": [10, 2], "x": 4.5, "y": 5.5, "w": 1.25 }, + { "label": "Win", "matrix": [10, 3], "x": 5.75, "y": 5.5 }, + { "label": "Alt", "matrix": [10, 4], "x": 6.75, "y": 5.5, "w": 1.25 }, + { "label": "Space", "matrix": [10, 5], "x": 8, "y": 5.5, "w": 6.25 }, + { "label": "AltGr", "matrix": [10, 6], "x": 14.25, "y": 5.5 }, + { "label": "Menu", "matrix": [10, 7], "x": 15.25, "y": 5.5 }, + { "label": "Ctrl", "matrix": [10, 8], "x": 16.25, "y": 5.5, "w": 1.25 }, + { "label": "\u2190", "matrix": [10, 9], "x": 17.75, "y": 5.75 }, + { "label": "\u2193", "matrix": [9, 9], "x": 18.75, "y": 5.75 }, + { "label": "\u2192", "matrix": [7, 9], "x": 19.75, "y": 5.75 } + ] + }, + + "LAYOUT_iso_split_bs": { + "layout": [ + { "label": "Fn", "matrix": [0, 0], "x": 0, "y": 0 }, + { "label": "PrtSc", "matrix": [1, 0], "x": 1, "y": 0 }, + { "label": "Scroll Lock", "matrix": [0, 1], "x": 2, "y": 0 }, + { "label": "Pause", "matrix": [1, 1], "x": 3, "y": 0 }, + { "label": "Esc", "matrix": [0, 2], "x": 4.5, "y": 0 }, + { "label": "F1", "matrix": [1, 2], "x": 6, "y": 0 }, + { "label": "F2", "matrix": [0, 3], "x": 7, "y": 0 }, + { "label": "F3", "matrix": [1, 3], "x": 8, "y": 0 }, + { "label": "F4", "matrix": [0, 4], "x": 9, "y": 0 }, + { "label": "F5", "matrix": [1, 4], "x": 10.25, "y": 0 }, + { "label": "F6", "matrix": [1, 5], "x": 11.25, "y": 0 }, + { "label": "F7", "matrix": [0, 5], "x": 12.25, "y": 0 }, + { "label": "F8", "matrix": [0, 6], "x": 13.25, "y": 0 }, + { "label": "F9", "matrix": [1, 6], "x": 14.5, "y": 0 }, + { "label": "F10", "matrix": [0, 7], "x": 15.5, "y": 0 }, + { "label": "F11", "matrix": [1, 7], "x": 16.5, "y": 0 }, + { "label": "F12", "matrix": [0, 8], "x": 17.5, "y": 0 }, + { "label": "Home", "matrix": [1, 8], "x": 19, "y": 0 }, + { "label": "PgUp", "matrix": [0, 9], "x": 20, "y": 0 }, + + { "label": "-", "matrix": [2, 0], "x": 0, "y": 1.5 }, + { "label": "*", "matrix": [3, 0], "x": 1, "y": 1.5 }, + { "label": "/", "matrix": [2, 1], "x": 2, "y": 1.5 }, + { "label": "Num Lock", "matrix": [3, 1], "x": 3, "y": 1.5 }, + { "label": "\u00ac", "matrix": [2, 2], "x": 4.5, "y": 1.5 }, + { "label": "!", "matrix": [3, 2], "x": 5.5, "y": 1.5 }, + { "label": "\"", "matrix": [2, 3], "x": 6.5, "y": 1.5 }, + { "label": "\u00a3", "matrix": [3, 3], "x": 7.5, "y": 1.5 }, + { "label": "$", "matrix": [2, 4], "x": 8.5, "y": 1.5 }, + { "label": "%", "matrix": [3, 4], "x": 9.5, "y": 1.5 }, + { "label": "^", "matrix": [3, 5], "x": 10.5, "y": 1.5 }, + { "label": "&", "matrix": [2, 5], "x": 11.5, "y": 1.5 }, + { "label": "*", "matrix": [2, 6], "x": 12.5, "y": 1.5 }, + { "label": "(", "matrix": [3, 6], "x": 13.5, "y": 1.5 }, + { "label": ")", "matrix": [2, 7], "x": 14.5, "y": 1.5 }, + { "label": "_", "matrix": [3, 7], "x": 15.5, "y": 1.5 }, + { "label": "+", "matrix": [2, 8], "x": 16.5, "y": 1.5 }, + { "label": "Backspace", "matrix": [1, 9], "x": 17.5, "y": 1.5 }, + { "label": "Backspace", "matrix": [3, 8], "x": 18.5, "y": 1.5 }, + { "label": "Insert", "matrix": [2, 9], "x": 20, "y": 1.5 }, + + { "label": "+", "matrix": [4, 0], "x": 0, "y": 2.5 }, + { "label": "9", "matrix": [5, 0], "x": 1, "y": 2.5 }, + { "label": "8", "matrix": [4, 1], "x": 2, "y": 2.5 }, + { "label": "7", "matrix": [5, 1], "x": 3, "y": 2.5 }, + { "label": "Tab", "matrix": [4, 2], "x": 4.5, "y": 2.5, "w": 1.5 }, + { "label": "Q", "matrix": [5, 2], "x": 6, "y": 2.5 }, + { "label": "W", "matrix": [4, 3], "x": 7, "y": 2.5 }, + { "label": "E", "matrix": [5, 3], "x": 8, "y": 2.5 }, + { "label": "R", "matrix": [4, 4], "x": 9, "y": 2.5 }, + { "label": "T", "matrix": [5, 4], "x": 10, "y": 2.5 }, + { "label": "Y", "matrix": [5, 5], "x": 11, "y": 2.5 }, + { "label": "U", "matrix": [4, 5], "x": 12, "y": 2.5 }, + { "label": "I", "matrix": [4, 6], "x": 13, "y": 2.5 }, + { "label": "O", "matrix": [5, 6], "x": 14, "y": 2.5 }, + { "label": "P", "matrix": [4, 7], "x": 15, "y": 2.5 }, + { "label": "{", "matrix": [5, 7], "x": 16, "y": 2.5 }, + { "label": "}", "matrix": [4, 8], "x": 17, "y": 2.5 }, + { "label": "Delete", "matrix": [4, 9], "x": 20, "y": 2.5 }, + + { "label": "+", "matrix": [6, 0], "x": 0, "y": 3.5 }, + { "label": "6", "matrix": [7, 0], "x": 1, "y": 3.5 }, + { "label": "5", "matrix": [6, 1], "x": 2, "y": 3.5 }, + { "label": "4", "matrix": [7, 1], "x": 3, "y": 3.5 }, + { "label": "CAPS", "matrix": [6, 2], "x": 4.5, "y": 3.5, "w": 1.25 }, + { "label": "A", "matrix": [7, 2], "x": 6.25, "y": 3.5 }, + { "label": "S", "matrix": [6, 3], "x": 7.25, "y": 3.5 }, + { "label": "D", "matrix": [7, 3], "x": 8.25, "y": 3.5 }, + { "label": "F", "matrix": [6, 4], "x": 9.25, "y": 3.5 }, + { "label": "G", "matrix": [7, 4], "x": 10.25, "y": 3.5 }, + { "label": "H", "matrix": [7, 5], "x": 11.25, "y": 3.5 }, + { "label": "J", "matrix": [6, 5], "x": 12.25, "y": 3.5 }, + { "label": "K", "matrix": [6, 6], "x": 13.25, "y": 3.5 }, + { "label": "L", "matrix": [7, 6], "x": 14.25, "y": 3.5 }, + { "label": ":", "matrix": [6, 7], "x": 15.25, "y": 3.5 }, + { "label": "@", "matrix": [7, 7], "x": 16.25, "y": 3.5 }, + { "label": "~", "matrix": [6, 8], "x": 17.25, "y": 3.5 }, + { "label": "Enter", "matrix": [7, 8], "x": 18.25, "y": 2.5, "w": 1.25, "h": 2 }, + { "label": "PgDn", "matrix": [6, 9], "x": 20, "y": 3.5 }, + + { "label": "Enter", "matrix": [3, 9], "x": 0, "y": 4.5 }, + { "label": "3", "matrix": [9, 0], "x": 1, "y": 4.5 }, + { "label": "2", "matrix": [8, 1], "x": 2, "y": 4.5 }, + { "label": "1", "matrix": [9, 1], "x": 3, "y": 4.5 }, + { "label": "Shift", "matrix": [8, 2], "x": 4.5, "y": 4.5, "w": 1.25 }, + { "label": "|", "matrix": [9, 2], "x": 5.75, "y": 4.5 }, + { "label": "Z", "matrix": [8, 3], "x": 6.75, "y": 4.5 }, + { "label": "X", "matrix": [9, 3], "x": 7.75, "y": 4.5 }, + { "label": "C", "matrix": [8, 4], "x": 8.75, "y": 4.5 }, + { "label": "V", "matrix": [9, 4], "x": 9.75, "y": 4.5 }, + { "label": "B", "matrix": [9, 5], "x": 10.75, "y": 4.5 }, + { "label": "N", "matrix": [8, 5], "x": 11.75, "y": 4.5 }, + { "label": "M", "matrix": [8, 6], "x": 12.75, "y": 4.5 }, + { "label": "<", "matrix": [9, 6], "x": 13.75, "y": 4.5 }, + { "label": ">", "matrix": [8, 7], "x": 14.75, "y": 4.5 }, + { "label": "?", "matrix": [9, 7], "x": 15.75, "y": 4.5 }, + { "label": "Shift", "matrix": [8, 8], "x": 16.75, "y": 4.5, "w": 1.75 }, + { "label": "\u2191", "matrix": [9, 8], "x": 18.75, "y": 4.75 }, + { "label": "End", "matrix": [8, 9], "x": 20, "y": 4.5 }, + + { "label": "Enter", "matrix": [8, 0], "x": 0, "y": 5.5 }, + { "label": ".", "matrix": [10, 0], "x": 1, "y": 5.5 }, + { "label": ",", "matrix": [5, 9], "x": 2, "y": 5.5 }, + { "label": "0", "matrix": [10, 1], "x": 3, "y": 5.5 }, + { "label": "Ctrl", "matrix": [10, 2], "x": 4.5, "y": 5.5, "w": 1.25 }, + { "label": "Win", "matrix": [10, 3], "x": 5.75, "y": 5.5 }, + { "label": "Alt", "matrix": [10, 4], "x": 6.75, "y": 5.5, "w": 1.25 }, + { "label": "Space", "matrix": [10, 5], "x": 8, "y": 5.5, "w": 6.25 }, + { "label": "AltGr", "matrix": [10, 6], "x": 14.25, "y": 5.5 }, + { "label": "Menu", "matrix": [10, 7], "x": 15.25, "y": 5.5 }, + { "label": "Ctrl", "matrix": [10, 8], "x": 16.25, "y": 5.5, "w": 1.25 }, + { "label": "\u2190", "matrix": [10, 9], "x": 17.75, "y": 5.75 }, + { "label": "\u2193", "matrix": [9, 9], "x": 18.75, "y": 5.75 }, + { "label": "\u2192", "matrix": [7, 9], "x": 19.75, "y": 5.75 } ] } } diff --git a/keyboards/cest73/tkm/keymaps/default_ansi_split_bs/keymap.c b/keyboards/cest73/tkm/keymaps/default_ansi_split_bs/keymap.c new file mode 100644 index 0000000000..1b4acb4cf7 --- /dev/null +++ b/keyboards/cest73/tkm/keymaps/default_ansi_split_bs/keymap.c @@ -0,0 +1,79 @@ + /* Copyright 2021 cest73 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ +#include QMK_KEYBOARD_H + +// Defines names for use in layer keycodes and the keymap +enum layer_names { + _BASE, + _FN +}; + +/* + * ┌───┬───┬───┬───┐ ┌───┐ ┌───┬───┬───┬───┐┌───┬───┬───┬───┐┌───┬───┬───┬───┐ ┌───┬───┐ + * │Fn │PSc│Scr│Pse│ │Esc│ │F1 │F2 │F3 │F4 ││F5 │F6 │F7 │F8 ││F9 │F10│F11│F12│ │Hme│PgU│ + * └───┴───┴───┴───┘ └───┘ └───┴───┴───┴───┘└───┴───┴───┴───┘└───┴───┴───┴───┘ └───┴───┘ + * + * ┌───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐ ┌───┐ + * │ - │ * │ / │Num│ │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │Bsl│Bsp│ │Ins│ + * ├───┼───┼───┼───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤ ├───┤ + * │ + │ 9 │ 8 │ 7 │ │ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ \ │ │Del│ + * ├───┼───┼───┼───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ ├───┤ + * │ = │ 6 │ 5 │ 4 │ │ Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ Enter │ │PgD│ + * ├───┼───┼───┼───┤ ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┘ ├───┤ + * │Tab│ 3 │ 2 │ 1 │ │ Shift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ Shift│┌───┐│End│ + * ├───┼───┼───┼───┤ ├────┬───┼───┴┬──┴───┴───┴───┴───┴───┴─┬─┴─┬─┴─┬─┴──┬───┘│ ↑ │└───┘ + * │Ent│ . │ , │ 0 │ │Ctrl│GUI│Alt │ │Alt│Mnu│Ctrl│┌───┼───┼───┐ + * └───┴───┴───┴───┘ └────┴───┴────┴────────────────────────┴───┴───┴────┘│ ← │ ↓ │ → │ + * └───┴───┴───┘ + */ + /* + * ┌───┬───┬───┬───┐ ┌───┐ ┌───┬───┬───┬───┐┌───┬───┬───┬───┐┌───┬───┬───┬───┐ ┌───┬───┐ + * │ │ │ │ │ │Rst│ │ │ │ │ ││ │ │ │ ││ │ │ │ │ │ │ │ + * └───┴───┴───┴───┘ └───┘ └───┴───┴───┴───┘└───┴───┴───┴───┘└───┴───┴───┴───┘ └───┴───┘ + * + * ┌───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐ ┌───┐ + * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ + * ├───┼───┼───┼───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤ ├───┤ + * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ + * ├───┼───┼───┼───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ ├───┤ + * │ │ │ │ │ │ │ │ │ │ │ │ ← │ ↑ │ ↓ │ → │ │ │ Enter │ │ │ + * ├───┼───┼───┼───┤ ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┘ ├───┤ + * │ │ │ │ │ │ Shift │ │ │ │ │ │ │ │ │ │ │ Shift│┌───┐│ │ + * ├───┼───┼───┼───┤ ├────┬───┼───┴┬──┴───┴───┴───┴───┴───┴─┬─┴─┬─┴─┬─┴──┬───┘│ ↑ │└───┘ + * │ │ │ │ │ │Ctrl│GUI│Alt │ │Alt│Mnu│Ctrl│┌───┼───┼───┐ + * └───┴───┴───┴───┘ └────┴───┴────┴────────────────────────┴───┴───┴────┘│ ← │ ↓ │ → │ + * └───┴───┴───┘ + */ + + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [_BASE] = LAYOUT_ansi_split_bs( + MO(1), KC_PSCR, KC_SCRL, KC_PAUS, 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_HOME, KC_PGUP, + KC_PMNS, KC_PAST, KC_PSLS, KC_NUM, 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_BSLS, KC_BSPC, KC_INS, + KC_PPLS, KC_P9, KC_P8, KC_P7, 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_PEQL, KC_P6, KC_P5, KC_P4, KC_CAPS, 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_PGDN, + KC_TAB, KC_P3, KC_P2, KC_P1, 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_END, + KC_PENT, KC_PDOT, KC_PCMM, KC_P0, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT + ), + [_FN] = LAYOUT_ansi_split_bs( + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, QK_BOOT, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_UP, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS + ) +}; diff --git a/keyboards/cest73/tkm/keymaps/default_iso_split_bs/keymap.c b/keyboards/cest73/tkm/keymaps/default_iso_split_bs/keymap.c new file mode 100644 index 0000000000..a971cb13be --- /dev/null +++ b/keyboards/cest73/tkm/keymaps/default_iso_split_bs/keymap.c @@ -0,0 +1,79 @@ + /* Copyright 2021 cest73 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ +#include QMK_KEYBOARD_H + +// Defines names for use in layer keycodes and the keymap +enum layer_names { + _BASE, + _FN +}; + +/* + * ┌───┬───┬───┬───┐ ┌───┐ ┌───┬───┬───┬───┐┌───┬───┬───┬───┐┌───┬───┬───┬───┐ ┌───┬───┐ + * │Fn │PSc│Scr│Pse│ │Esc│ │F1 │F2 │F3 │F4 ││F5 │F6 │F7 │F8 ││F9 │F10│F11│F12│ │Hme│PgU│ + * └───┴───┴───┴───┘ └───┘ └───┴───┴───┴───┘└───┴───┴───┴───┘└───┴───┴───┴───┘ └───┴───┘ + * + * ┌───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐ ┌───┐ + * │ - │ * │ / │Num│ │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │Bsl│Bsp│ │Ins│ + * ├───┼───┼───┼───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤ ├───┤ + * │ + │ 9 │ 8 │ 7 │ │ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ │ │Del│ + * ├───┼───┼───┼───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ Ent│ ├───┤ + * │ = │ 6 │ 5 │ 4 │ │ Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ # │ │ │PgD│ + * ├───┼───┼───┼───┤ ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴┬───┘ ├───┤ + * │Tab│ 3 │ 2 │ 1 │ │Shft│ \ │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ Shift│┌───┐│End│ + * ├───┼───┼───┼───┤ ├────┼───┼───┴┬──┴───┴───┴───┴───┴───┴─┬─┴─┬─┴─┬─┴──┬───┘│ ↑ │└───┘ + * │Ent│ . │ , │ 0 │ │Ctrl│GUI│Alt │ │Alt│Mnu│Ctrl│┌───┼───┼───┐ + * └───┴───┴───┴───┘ └────┴───┴────┴────────────────────────┴───┴───┴────┘│ ← │ ↓ │ → │ + * └───┴───┴───┘ + */ + /* + * ┌───┬───┬───┬───┐ ┌───┐ ┌───┬───┬───┬───┐┌───┬───┬───┬───┐┌───┬───┬───┬───┐ ┌───┬───┐ + * │ │ │ │ │ │Rst│ │ │ │ │ ││ │ │ │ ││ │ │ │ │ │ │ │ + * └───┴───┴───┴───┘ └───┘ └───┴───┴───┴───┘└───┴───┴───┴───┘└───┴───┴───┴───┘ └───┴───┘ + * + * ┌───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐ ┌───┐ + * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ + * ├───┼───┼───┼───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤ ├───┤ + * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ + * ├───┼───┼───┼───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ Ent│ ├───┤ + * │ │ │ │ │ │ │ │ │ │ │ │ ← │ ↑ │ ↓ │ → │ │ │ │ │ │ │ + * ├───┼───┼───┼───┤ ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴┬───┘ ├───┤ + * │ │ │ │ │ │Shft│ │ │ │ │ │ │ │ │ │ │ │ Shift│┌───┐│ │ + * ├───┼───┼───┼───┤ ├────┼───┼───┴┬──┴───┴───┴───┴───┴───┴─┬─┴─┬─┴─┬─┴──┬───┘│ ↑ │└───┘ + * │ │ │ │ │ │Ctrl│GUI│Alt │ │Alt│Mnu│Ctrl│┌───┼───┼───┐ + * └───┴───┴───┴───┘ └────┴───┴────┴────────────────────────┴───┴───┴────┘│ ← │ ↓ │ → │ + * └───┴───┴───┘ + */ + + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [_BASE] = LAYOUT_iso_split_bs( + MO(1), KC_PSCR, KC_SCRL, KC_PAUS, 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_HOME, KC_PGUP, + KC_PMNS, KC_PAST, KC_PSLS, KC_NUM, 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_BSLS, KC_BSPC, KC_INS, + KC_PPLS, KC_P9, KC_P8, KC_P7, 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_DEL, + KC_PEQL, KC_P6, KC_P5, KC_P4, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_PGDN, + KC_TAB, KC_P3, KC_P2, KC_P1, KC_LSFT, KC_NUBS, 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_END, + KC_PENT, KC_PDOT, KC_PCMM, KC_P0, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT + ), + [_FN] = LAYOUT_iso_split_bs( + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, QK_BOOT, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_UP, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS + ) +}; diff --git a/keyboards/cest73/tkm/matrix_diagram.md b/keyboards/cest73/tkm/matrix_diagram.md new file mode 100644 index 0000000000..bf107f0b68 --- /dev/null +++ b/keyboards/cest73/tkm/matrix_diagram.md @@ -0,0 +1,27 @@ +# Matrix Diagram for Ten Key Mirrored - 2021 + +Due to a nasty PCB layout bug the R1.03 board has "6" and "7" keyboard coulmns swapped. + +``` + ┌───┬───┬───┬───┐ ┌───┐ ┌───┬───┬───┬───┐┌───┬───┬───┬───┐┌───┬───┬───┬───┐ ┌───┬───┐ + │00 │10 │01 │11 │ │02 │ │12 │03 │13 │04 ││14 │15 │05 │06 ││16 │07 │17 │08 │ │18 │09 │ + └───┴───┴───┴───┘ └───┘ └───┴───┴───┴───┘└───┴───┴───┴───┘└───┴───┴───┴───┘ └───┴───┘ + ┌───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐ ┌───┐ ┌───────┐ + │20 │30 │21 │31 │ │22 │32 │23 │33 │24 │34 │35 │25 │26 │36 │27 │37 │28 │19 │38 │ │29 │ │38 │ 2u Backspace +┌───┐ ┌───┐ ├───┼───┼───┼───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤ ├───┤ └─┬─────┤ +│ │ Left │ │ Right │40 │50 │41 │51 │ │42 │52 │43 │53 │44 │54 │55 │45 │46 │56 │47 │57 │48 │58 │ │49 │ │ │ +│40 │ 2u │51 │ 2u ├───┼───┼───┼───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ ├───┤ ┌──┴┐78 │ ISO Enter +│ │ NumPlus │ │ NumPlus │60 │70 │61 │71 │ │62 │72 │63 │73 │64 │74 │75 │65 │66 │76 │67 │77 │78 │ │69 │ │68 │ │ +├───┤ ├───┤ ├───┼───┼───┼───┤ ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┘ ├───┤ └───┴────┘ +│ │ Left │ │ Right │39 │90 │81 │91 │ │82 │92 │83 │93 │84 │94 │95 │85 │86 │96 │87 │97 │88 │┌───┐│89 │ +│80 │ 2u │91 │ 2u ├───┼───┼───┼───┤ ├────┼───┼───┴┬──┴───┴───┴───┴───┴───┴─┬─┴─┬─┴─┬─┴──┬───┘│98 │└───┘ +│ │ NumEnter │ │ NumEnter │80 │A0 │59 │A1 │ │A2 │A3 │A4 │A5 │A6 │A7 │A8 │┌───┼───┼───┐ +└───┘ └───┘ └───┴───┴───┴───┘ └────┴───┴────┴────────────────────────┴───┴───┴────┘│A9 │99 │79 │ + └───┴───┴───┘ + ┌───────┬───────┐ ┌────────┐ + │A0 │A1 │ │82 │ 2.25u LShift + └───────┴───────┘ └────────┘ + Left Right ┌─────┬─────┬───────────────────────────┬─────┬─────┐ + 2u NumZero │A2 │A4 │A5 │A6 │A8 │ WKL + └─────┴─────┴───────────────────────────┴─────┴─────┘ +``` |