diff --git a/keyboards/unicomp/mini_m/info.json b/keyboards/unicomp/mini_m/info.json new file mode 100644 index 000000000000..058b59edc28c --- /dev/null +++ b/keyboards/unicomp/mini_m/info.json @@ -0,0 +1,469 @@ +{ + "community_layouts": [ + "tkl_ansi", + "tkl_ansi_tsangan", + "tkl_iso", + "tkl_iso_tsangan" + ], + "layouts": { + "LAYOUT_all": { + "layout": [ + { "label": "Esc", "matrix": [0, 1], "x": 0, "y": 0 }, + { "label": "F1", "matrix": [2, 2], "x": 2, "y": 0 }, + { "label": "F2", "matrix": [0, 4], "x": 3, "y": 0 }, + { "label": "F3", "matrix": [0, 5], "x": 4, "y": 0 }, + { "label": "F4", "matrix": [0, 6], "x": 5, "y": 0 }, + { "label": "F5", "matrix": [1, 8], "x": 6.5, "y": 0 }, + { "label": "F6", "matrix": [3, 8], "x": 7.5, "y": 0 }, + { "label": "F7", "matrix": [4, 8], "x": 8.5, "y": 0 }, + { "label": "F8", "matrix": [5, 8], "x": 9.5, "y": 0 }, + { "label": "F9", "matrix": [6, 8], "x": 11, "y": 0 }, + { "label": "F10", "matrix": [6, 10], "x": 12, "y": 0 }, + { "label": "F11", "matrix": [6, 11], "x": 13, "y": 0 }, + { "label": "F12", "matrix": [7, 11], "x": 14, "y": 0 }, + { "label": "Pause / SysReq", "matrix": [6, 13], "x": 15.5, "y": 0 }, + { "label": "Scroll Lock / Num Lock", "matrix": [7, 13], "x": 16.5, "y": 0 }, + { "label": "Pause / Reset", "matrix": [11, 15], "x": 17.5, "y": 0 }, + { "label": "`", "matrix": [0, 0], "x": 0, "y": 1.5 }, + { "label": "1", "matrix": [3, 2], "x": 1, "y": 1.5 }, + { "label": "2", "matrix": [6, 2], "x": 2, "y": 1.5 }, + { "label": "3", "matrix": [7, 2], "x": 3, "y": 1.5 }, + { "label": "4", "matrix": [4, 2], "x": 4, "y": 1.5 }, + { "label": "5", "matrix": [0, 2], "x": 5, "y": 1.5 }, + { "label": "6", "matrix": [1, 7], "x": 6, "y": 1.5 }, + { "label": "7", "matrix": [5, 7], "x": 7, "y": 1.5 }, + { "label": "8", "matrix": [10, 7], "x": 8, "y": 1.5 }, + { "label": "9", "matrix": [9, 7], "x": 9, "y": 1.5 }, + { "label": "0", "matrix": [8, 7], "x": 10, "y": 1.5 }, + { "label": "-", "matrix": [6, 12], "x": 11, "y": 1.5 }, + { "label": "=", "matrix": [6, 9], "x": 12, "y": 1.5 }, + { "label": "No", "matrix": [7, 12], "x": 13, "y": 1.5 }, + { "label": "Backspace", "matrix": [8, 9], "x": 14, "y": 1.5 }, + { "label": "Insert", "matrix": [8, 12], "x": 15.5, "y": 1.5 }, + { "label": "Home", "matrix": [9, 13], "x": 16.5, "y": 1.5 }, + { "label": "Page Up", "matrix": [10, 12], "x": 17.5, "y": 1.5 }, + { "label": "Tab", "matrix": [2, 12], "w": 1.5, "x": 0, "y": 2.5 }, + { "label": "Q", "matrix": [1, 2], "x": 1.5, "y": 2.5 }, + { "label": "W", "matrix": [5, 2], "x": 2.5, "y": 2.5 }, + { "label": "E", "matrix": [10, 2], "x": 3.5, "y": 2.5 }, + { "label": "R", "matrix": [9, 2], "x": 4.5, "y": 2.5 }, + { "label": "T", "matrix": [8, 2], "x": 5.5, "y": 2.5 }, + { "label": "Y", "matrix": [3, 7], "x": 6.5, "y": 2.5 }, + { "label": "U", "matrix": [6, 7], "x": 7.5, "y": 2.5 }, + { "label": "I", "matrix": [7, 7], "x": 8.5, "y": 2.5 }, + { "label": "O", "matrix": [4, 7], "x": 9.5, "y": 2.5 }, + { "label": "P", "matrix": [0, 7], "x": 10.5, "y": 2.5 }, + { "label": "[", "matrix": [5, 9], "x": 11.5, "y": 2.5 }, + { "label": "]", "matrix": [10, 9], "x": 12.5, "y": 2.5 }, + { "label": "\\", "matrix": [9, 9], "w": 1.5, "x": 13.5, "y": 2.5 }, + { "label": "Delete", "matrix": [11, 13], "x": 15.5, "y": 2.5 }, + { "label": "End", "matrix": [8, 11], "x": 16.5, "y": 2.5 }, + { "label": "Page Down", "matrix": [10, 13], "x": 17.5, "y": 2.5 }, + { "label": "Caps Lock", "matrix": [1, 0], "w": 1.75, "x": 0, "y": 3.5 }, + { "label": "A", "matrix": [2, 11], "x": 1.75, "y": 3.5 }, + { "label": "S", "matrix": [2, 0], "x": 2.75, "y": 3.5 }, + { "label": "D", "matrix": [2, 1], "x": 3.75, "y": 3.5 }, + { "label": "F", "matrix": [2, 3], "x": 4.75, "y": 3.5 }, + { "label": "G", "matrix": [2, 4], "x": 5.75, "y": 3.5 }, + { "label": "H", "matrix": [11, 5], "x": 6.75, "y": 3.5 }, + { "label": "J", "matrix": [11, 8], "x": 7.75, "y": 3.5 }, + { "label": "K", "matrix": [11, 6], "x": 8.75, "y": 3.5 }, + { "label": "L", "matrix": [11, 9], "x": 9.75, "y": 3.5 }, + { "label": ";", "matrix": [11, 10], "x": 10.75, "y": 3.5 }, + { "label": "'", "matrix": [11, 12], "x": 11.75, "y": 3.5 }, + { "label": "No", "matrix": [1, 13], "x": 12.75, "y": 3.5 }, + { "label": "Enter", "matrix": [0, 13], "w": 1.25, "x": 13.75, "y": 3.5 }, + { "label": "Shift", "matrix": [4, 15], "w": 1.25, "x": 0, "y": 4.5 }, + { "label": "No", "matrix": [1, 1], "x": 1.25, "y": 4.5 }, + { "label": "Z", "matrix": [2, 5], "x": 2.25, "y": 4.5 }, + { "label": "X", "matrix": [2, 8], "x": 3.25, "y": 4.5 }, + { "label": "C", "matrix": [2, 6], "x": 4.25, "y": 4.5 }, + { "label": "V", "matrix": [2, 9], "x": 5.25, "y": 4.5 }, + { "label": "B", "matrix": [2, 10], "x": 6.25, "y": 4.5 }, + { "label": "N", "matrix": [11, 11], "x": 7.25, "y": 4.5 }, + { "label": "M", "matrix": [11, 0], "x": 8.25, "y": 4.5 }, + { "label": ",", "matrix": [11, 1], "x": 9.25, "y": 4.5 }, + { "label": ".", "matrix": [11, 3], "x": 10.25, "y": 4.5 }, + { "label": "/", "matrix": [11, 4], "x": 11.25, "y": 4.5 }, + { "label": "No", "matrix": [0, 3], "x": 12.25, "y": 4.5 }, + { "label": "Shift", "matrix": [1, 15], "w": 1.75, "x": 13.25, "y": 4.5 }, + { "label": "Up", "matrix": [8, 10], "x": 16.5, "y": 4.5 }, + { "label": "Ctrl", "matrix": [4, 14], "w": 1.5, "x": 0, "y": 5.5 }, + { "label": "GUI", "matrix": [3, 11], "x": 1.5, "y": 5.5 }, + { "label": "Alt", "matrix": [0, 12], "w": 1.5, "x": 2.5, "y": 5.5 }, + { "label": "Space", "matrix": [10, 0], "w": 6, "x": 4, "y": 5.5 }, + { "label": "Alt", "matrix": [9, 3], "x": 10, "y": 5.5 }, + { "label": "GUI", "matrix": [5, 10], "w": 1.5, "x": 11, "y": 5.5 }, + { "label": "App", "matrix": [10, 4], "x": 12.5, "y": 5.5 }, + { "label": "Ctrl", "matrix": [1, 14], "w": 1.5, "x": 13.5, "y": 5.5 }, + { "label": "Left", "matrix": [9, 4], "x": 15.5, "y": 5.5 }, + { "label": "Down", "matrix": [10, 11], "x": 16.5, "y": 5.5 }, + { "label": "Right", "matrix": [10, 10], "x": 17.5, "y": 5.5 } + ] + }, + "LAYOUT_tkl_ansi": { + "layout": [ + { "label": "Esc", "matrix": [0, 1], "x": 0, "y": 0 }, + { "label": "F1", "matrix": [2, 2], "x": 2, "y": 0 }, + { "label": "F2", "matrix": [0, 4], "x": 3, "y": 0 }, + { "label": "F3", "matrix": [0, 5], "x": 4, "y": 0 }, + { "label": "F4", "matrix": [0, 6], "x": 5, "y": 0 }, + { "label": "F5", "matrix": [1, 8], "x": 6.5, "y": 0 }, + { "label": "F6", "matrix": [3, 8], "x": 7.5, "y": 0 }, + { "label": "F7", "matrix": [4, 8], "x": 8.5, "y": 0 }, + { "label": "F8", "matrix": [5, 8], "x": 9.5, "y": 0 }, + { "label": "F9", "matrix": [6, 8], "x": 11, "y": 0 }, + { "label": "F10", "matrix": [6, 10], "x": 12, "y": 0 }, + { "label": "F11", "matrix": [6, 11], "x": 13, "y": 0 }, + { "label": "F12", "matrix": [7, 11], "x": 14, "y": 0 }, + { "label": "Pause / SysReq", "matrix": [6, 13], "x": 15.5, "y": 0 }, + { "label": "Scroll Lock / Num Lock", "matrix": [7, 13], "x": 16.5, "y": 0 }, + { "label": "Pause / Reset", "matrix": [11, 15], "x": 17.5, "y": 0 }, + { "label": "`", "matrix": [0, 0], "x": 0, "y": 1.5 }, + { "label": "1", "matrix": [3, 2], "x": 1, "y": 1.5 }, + { "label": "2", "matrix": [6, 2], "x": 2, "y": 1.5 }, + { "label": "3", "matrix": [7, 2], "x": 3, "y": 1.5 }, + { "label": "4", "matrix": [4, 2], "x": 4, "y": 1.5 }, + { "label": "5", "matrix": [0, 2], "x": 5, "y": 1.5 }, + { "label": "6", "matrix": [1, 7], "x": 6, "y": 1.5 }, + { "label": "7", "matrix": [5, 7], "x": 7, "y": 1.5 }, + { "label": "8", "matrix": [10, 7], "x": 8, "y": 1.5 }, + { "label": "9", "matrix": [9, 7], "x": 9, "y": 1.5 }, + { "label": "0", "matrix": [8, 7], "x": 10, "y": 1.5 }, + { "label": "-", "matrix": [6, 12], "x": 11, "y": 1.5 }, + { "label": "=", "matrix": [6, 9], "x": 12, "y": 1.5 }, + { "label": "Backspace", "matrix": [8, 9], "w": 2, "x": 13, "y": 1.5 }, + { "label": "Insert", "matrix": [8, 12], "x": 15.5, "y": 1.5 }, + { "label": "Home", "matrix": [9, 13], "x": 16.5, "y": 1.5 }, + { "label": "Page Up", "matrix": [10, 12], "x": 17.5, "y": 1.5 }, + { "label": "Tab", "matrix": [2, 12], "w": 1.5, "x": 0, "y": 2.5 }, + { "label": "Q", "matrix": [1, 2], "x": 1.5, "y": 2.5 }, + { "label": "W", "matrix": [5, 2], "x": 2.5, "y": 2.5 }, + { "label": "E", "matrix": [10, 2], "x": 3.5, "y": 2.5 }, + { "label": "R", "matrix": [9, 2], "x": 4.5, "y": 2.5 }, + { "label": "T", "matrix": [8, 2], "x": 5.5, "y": 2.5 }, + { "label": "Y", "matrix": [3, 7], "x": 6.5, "y": 2.5 }, + { "label": "U", "matrix": [6, 7], "x": 7.5, "y": 2.5 }, + { "label": "I", "matrix": [7, 7], "x": 8.5, "y": 2.5 }, + { "label": "O", "matrix": [4, 7], "x": 9.5, "y": 2.5 }, + { "label": "P", "matrix": [0, 7], "x": 10.5, "y": 2.5 }, + { "label": "[", "matrix": [5, 9], "x": 11.5, "y": 2.5 }, + { "label": "]", "matrix": [10, 9], "x": 12.5, "y": 2.5 }, + { "label": "\\", "matrix": [9, 9], "w": 1.5, "x": 13.5, "y": 2.5 }, + { "label": "Delete", "matrix": [11, 13], "x": 15.5, "y": 2.5 }, + { "label": "End", "matrix": [8, 11], "x": 16.5, "y": 2.5 }, + { "label": "Page Down", "matrix": [10, 13], "x": 17.5, "y": 2.5 }, + { "label": "Caps Lock", "matrix": [1, 0], "w": 1.75, "x": 0, "y": 3.5 }, + { "label": "A", "matrix": [2, 11], "x": 1.75, "y": 3.5 }, + { "label": "S", "matrix": [2, 0], "x": 2.75, "y": 3.5 }, + { "label": "D", "matrix": [2, 1], "x": 3.75, "y": 3.5 }, + { "label": "F", "matrix": [2, 3], "x": 4.75, "y": 3.5 }, + { "label": "G", "matrix": [2, 4], "x": 5.75, "y": 3.5 }, + { "label": "H", "matrix": [11, 5], "x": 6.75, "y": 3.5 }, + { "label": "J", "matrix": [11, 8], "x": 7.75, "y": 3.5 }, + { "label": "K", "matrix": [11, 6], "x": 8.75, "y": 3.5 }, + { "label": "L", "matrix": [11, 9], "x": 9.75, "y": 3.5 }, + { "label": ";", "matrix": [11, 10], "x": 10.75, "y": 3.5 }, + { "label": "'", "matrix": [11, 12], "x": 11.75, "y": 3.5 }, + { "label": "Enter", "matrix": [0, 13], "w": 2.25, "x": 12.75, "y": 3.5 }, + { "label": "Shift", "matrix": [4, 15], "w": 2.25, "x": 0, "y": 4.5 }, + { "label": "Z", "matrix": [2, 5], "x": 2.25, "y": 4.5 }, + { "label": "X", "matrix": [2, 8], "x": 3.25, "y": 4.5 }, + { "label": "C", "matrix": [2, 6], "x": 4.25, "y": 4.5 }, + { "label": "V", "matrix": [2, 9], "x": 5.25, "y": 4.5 }, + { "label": "B", "matrix": [2, 10], "x": 6.25, "y": 4.5 }, + { "label": "N", "matrix": [11, 11], "x": 7.25, "y": 4.5 }, + { "label": "M", "matrix": [11, 0], "x": 8.25, "y": 4.5 }, + { "label": ",", "matrix": [11, 1], "x": 9.25, "y": 4.5 }, + { "label": ".", "matrix": [11, 3], "x": 10.25, "y": 4.5 }, + { "label": "/", "matrix": [11, 4], "x": 11.25, "y": 4.5 }, + { "label": "Shift", "matrix": [1, 15], "w": 2.75, "x": 12.25, "y": 4.5 }, + { "label": "Up", "matrix": [8, 10], "x": 16.5, "y": 4.5 }, + { "label": "Ctrl", "matrix": [4, 14], "w": 1.5, "x": 0, "y": 5.5 }, + { "label": "GUI", "matrix": [3, 11], "x": 1.5, "y": 5.5 }, + { "label": "Alt", "matrix": [0, 12], "w": 1.5, "x": 2.5, "y": 5.5 }, + { "label": "Space", "matrix": [10, 0], "w": 6, "x": 4, "y": 5.5 }, + { "label": "Alt", "matrix": [9, 3], "x": 10, "y": 5.5 }, + { "label": "GUI", "matrix": [5, 10], "w": 1.5, "x": 11, "y": 5.5 }, + { "label": "App", "matrix": [10, 4], "x": 12.5, "y": 5.5 }, + { "label": "Ctrl", "matrix": [1, 14], "w": 1.5, "x": 13.5, "y": 5.5 }, + { "label": "Left", "matrix": [9, 4], "x": 15.5, "y": 5.5 }, + { "label": "Down", "matrix": [10, 11], "x": 16.5, "y": 5.5 }, + { "label": "Right", "matrix": [10, 10], "x": 17.5, "y": 5.5 } + ] + }, + "LAYOUT_tkl_ansi_tsangan": { + "layout": [ + { "label": "Esc", "matrix": [0, 1], "x": 0, "y": 0 }, + { "label": "F1", "matrix": [2, 2], "x": 2, "y": 0 }, + { "label": "F2", "matrix": [0, 4], "x": 3, "y": 0 }, + { "label": "F3", "matrix": [0, 5], "x": 4, "y": 0 }, + { "label": "F4", "matrix": [0, 6], "x": 5, "y": 0 }, + { "label": "F5", "matrix": [1, 8], "x": 6.5, "y": 0 }, + { "label": "F6", "matrix": [3, 8], "x": 7.5, "y": 0 }, + { "label": "F7", "matrix": [4, 8], "x": 8.5, "y": 0 }, + { "label": "F8", "matrix": [5, 8], "x": 9.5, "y": 0 }, + { "label": "F9", "matrix": [6, 8], "x": 11, "y": 0 }, + { "label": "F10", "matrix": [6, 10], "x": 12, "y": 0 }, + { "label": "F11", "matrix": [6, 11], "x": 13, "y": 0 }, + { "label": "F12", "matrix": [7, 11], "x": 14, "y": 0 }, + { "label": "Pause / SysReq", "matrix": [6, 13], "x": 15.5, "y": 0 }, + { "label": "Scroll Lock / Num Lock", "matrix": [7, 13], "x": 16.5, "y": 0 }, + { "label": "Pause / Reset", "matrix": [11, 15], "x": 17.5, "y": 0 }, + { "label": "`", "matrix": [0, 0], "x": 0, "y": 1.5 }, + { "label": "1", "matrix": [3, 2], "x": 1, "y": 1.5 }, + { "label": "2", "matrix": [6, 2], "x": 2, "y": 1.5 }, + { "label": "3", "matrix": [7, 2], "x": 3, "y": 1.5 }, + { "label": "4", "matrix": [4, 2], "x": 4, "y": 1.5 }, + { "label": "5", "matrix": [0, 2], "x": 5, "y": 1.5 }, + { "label": "6", "matrix": [1, 7], "x": 6, "y": 1.5 }, + { "label": "7", "matrix": [5, 7], "x": 7, "y": 1.5 }, + { "label": "8", "matrix": [10, 7], "x": 8, "y": 1.5 }, + { "label": "9", "matrix": [9, 7], "x": 9, "y": 1.5 }, + { "label": "0", "matrix": [8, 7], "x": 10, "y": 1.5 }, + { "label": "-", "matrix": [6, 12], "x": 11, "y": 1.5 }, + { "label": "=", "matrix": [6, 9], "x": 12, "y": 1.5 }, + { "label": "Backspace", "matrix": [8, 9], "w": 2, "x": 13, "y": 1.5 }, + { "label": "Insert", "matrix": [8, 12], "x": 15.5, "y": 1.5 }, + { "label": "Home", "matrix": [9, 13], "x": 16.5, "y": 1.5 }, + { "label": "Page Up", "matrix": [10, 12], "x": 17.5, "y": 1.5 }, + { "label": "Tab", "matrix": [2, 12], "w": 1.5, "x": 0, "y": 2.5 }, + { "label": "Q", "matrix": [1, 2], "x": 1.5, "y": 2.5 }, + { "label": "W", "matrix": [5, 2], "x": 2.5, "y": 2.5 }, + { "label": "E", "matrix": [10, 2], "x": 3.5, "y": 2.5 }, + { "label": "R", "matrix": [9, 2], "x": 4.5, "y": 2.5 }, + { "label": "T", "matrix": [8, 2], "x": 5.5, "y": 2.5 }, + { "label": "Y", "matrix": [3, 7], "x": 6.5, "y": 2.5 }, + { "label": "U", "matrix": [6, 7], "x": 7.5, "y": 2.5 }, + { "label": "I", "matrix": [7, 7], "x": 8.5, "y": 2.5 }, + { "label": "O", "matrix": [4, 7], "x": 9.5, "y": 2.5 }, + { "label": "P", "matrix": [0, 7], "x": 10.5, "y": 2.5 }, + { "label": "[", "matrix": [5, 9], "x": 11.5, "y": 2.5 }, + { "label": "]", "matrix": [10, 9], "x": 12.5, "y": 2.5 }, + { "label": "\\", "matrix": [9, 9], "w": 1.5, "x": 13.5, "y": 2.5 }, + { "label": "Delete", "matrix": [11, 13], "x": 15.5, "y": 2.5 }, + { "label": "End", "matrix": [8, 11], "x": 16.5, "y": 2.5 }, + { "label": "Page Down", "matrix": [10, 13], "x": 17.5, "y": 2.5 }, + { "label": "Caps Lock", "matrix": [1, 0], "w": 1.75, "x": 0, "y": 3.5 }, + { "label": "A", "matrix": [2, 11], "x": 1.75, "y": 3.5 }, + { "label": "S", "matrix": [2, 0], "x": 2.75, "y": 3.5 }, + { "label": "D", "matrix": [2, 1], "x": 3.75, "y": 3.5 }, + { "label": "F", "matrix": [2, 3], "x": 4.75, "y": 3.5 }, + { "label": "G", "matrix": [2, 4], "x": 5.75, "y": 3.5 }, + { "label": "H", "matrix": [11, 5], "x": 6.75, "y": 3.5 }, + { "label": "J", "matrix": [11, 8], "x": 7.75, "y": 3.5 }, + { "label": "K", "matrix": [11, 6], "x": 8.75, "y": 3.5 }, + { "label": "L", "matrix": [11, 9], "x": 9.75, "y": 3.5 }, + { "label": ";", "matrix": [11, 10], "x": 10.75, "y": 3.5 }, + { "label": "'", "matrix": [11, 12], "x": 11.75, "y": 3.5 }, + { "label": "Enter", "matrix": [0, 13], "w": 2.25, "x": 12.75, "y": 3.5 }, + { "label": "Shift", "matrix": [4, 15], "w": 2.25, "x": 0, "y": 4.5 }, + { "label": "Z", "matrix": [2, 5], "x": 2.25, "y": 4.5 }, + { "label": "X", "matrix": [2, 8], "x": 3.25, "y": 4.5 }, + { "label": "C", "matrix": [2, 6], "x": 4.25, "y": 4.5 }, + { "label": "V", "matrix": [2, 9], "x": 5.25, "y": 4.5 }, + { "label": "B", "matrix": [2, 10], "x": 6.25, "y": 4.5 }, + { "label": "N", "matrix": [11, 11], "x": 7.25, "y": 4.5 }, + { "label": "M", "matrix": [11, 0], "x": 8.25, "y": 4.5 }, + { "label": ",", "matrix": [11, 1], "x": 9.25, "y": 4.5 }, + { "label": ".", "matrix": [11, 3], "x": 10.25, "y": 4.5 }, + { "label": "/", "matrix": [11, 4], "x": 11.25, "y": 4.5 }, + { "label": "Shift", "matrix": [1, 15], "w": 2.75, "x": 12.25, "y": 4.5 }, + { "label": "Up", "matrix": [8, 10], "x": 16.5, "y": 4.5 }, + { "label": "Ctrl", "matrix": [4, 14], "w": 1.5, "x": 0, "y": 5.5 }, + { "label": "GUI", "matrix": [3, 11], "x": 1.5, "y": 5.5 }, + { "label": "Alt", "matrix": [0, 12], "w": 1.5, "x": 2.5, "y": 5.5 }, + { "label": "Space", "matrix": [10, 0], "w": 7, "x": 4, "y": 5.5 }, + { "label": "GUI", "matrix": [5, 10], "w": 1.5, "x": 11, "y": 5.5 }, + { "label": "App", "matrix": [10, 4], "x": 12.5, "y": 5.5 }, + { "label": "Ctrl", "matrix": [1, 14], "w": 1.5, "x": 13.5, "y": 5.5 }, + { "label": "Left", "matrix": [9, 4], "x": 15.5, "y": 5.5 }, + { "label": "Down", "matrix": [10, 11], "x": 16.5, "y": 5.5 }, + { "label": "Right", "matrix": [10, 10], "x": 17.5, "y": 5.5 } + ] + }, + "LAYOUT_tkl_iso": { + "layout": [ + { "label": "Esc", "matrix": [0, 1], "x": 0, "y": 0 }, + { "label": "F1", "matrix": [2, 2], "x": 2, "y": 0 }, + { "label": "F2", "matrix": [0, 4], "x": 3, "y": 0 }, + { "label": "F3", "matrix": [0, 5], "x": 4, "y": 0 }, + { "label": "F4", "matrix": [0, 6], "x": 5, "y": 0 }, + { "label": "F5", "matrix": [1, 8], "x": 6.5, "y": 0 }, + { "label": "F6", "matrix": [3, 8], "x": 7.5, "y": 0 }, + { "label": "F7", "matrix": [4, 8], "x": 8.5, "y": 0 }, + { "label": "F8", "matrix": [5, 8], "x": 9.5, "y": 0 }, + { "label": "F9", "matrix": [6, 8], "x": 11, "y": 0 }, + { "label": "F10", "matrix": [6, 10], "x": 12, "y": 0 }, + { "label": "F11", "matrix": [6, 11], "x": 13, "y": 0 }, + { "label": "F12", "matrix": [7, 11], "x": 14, "y": 0 }, + { "label": "Pause / SysReq", "matrix": [6, 13], "x": 15.5, "y": 0 }, + { "label": "Scroll Lock / Num Lock", "matrix": [7, 13], "x": 16.5, "y": 0 }, + { "label": "Pause / Reset", "matrix": [11, 15], "x": 17.5, "y": 0 }, + { "label": "`", "matrix": [0, 0], "x": 0, "y": 1.5 }, + { "label": "1", "matrix": [3, 2], "x": 1, "y": 1.5 }, + { "label": "2", "matrix": [6, 2], "x": 2, "y": 1.5 }, + { "label": "3", "matrix": [7, 2], "x": 3, "y": 1.5 }, + { "label": "4", "matrix": [4, 2], "x": 4, "y": 1.5 }, + { "label": "5", "matrix": [0, 2], "x": 5, "y": 1.5 }, + { "label": "6", "matrix": [1, 7], "x": 6, "y": 1.5 }, + { "label": "7", "matrix": [5, 7], "x": 7, "y": 1.5 }, + { "label": "8", "matrix": [10, 7], "x": 8, "y": 1.5 }, + { "label": "9", "matrix": [9, 7], "x": 9, "y": 1.5 }, + { "label": "0", "matrix": [8, 7], "x": 10, "y": 1.5 }, + { "label": "-", "matrix": [6, 12], "x": 11, "y": 1.5 }, + { "label": "=", "matrix": [6, 9], "x": 12, "y": 1.5 }, + { "label": "Backspace", "matrix": [8, 9], "w": 2, "x": 13, "y": 1.5 }, + { "label": "Insert", "matrix": [8, 12], "x": 15.5, "y": 1.5 }, + { "label": "Home", "matrix": [9, 13], "x": 16.5, "y": 1.5 }, + { "label": "Page Up", "matrix": [10, 12], "x": 17.5, "y": 1.5 }, + { "label": "Tab", "matrix": [2, 12], "w": 1.5, "x": 0, "y": 2.5 }, + { "label": "Q", "matrix": [1, 2], "x": 1.5, "y": 2.5 }, + { "label": "W", "matrix": [5, 2], "x": 2.5, "y": 2.5 }, + { "label": "E", "matrix": [10, 2], "x": 3.5, "y": 2.5 }, + { "label": "R", "matrix": [9, 2], "x": 4.5, "y": 2.5 }, + { "label": "T", "matrix": [8, 2], "x": 5.5, "y": 2.5 }, + { "label": "Y", "matrix": [3, 7], "x": 6.5, "y": 2.5 }, + { "label": "U", "matrix": [6, 7], "x": 7.5, "y": 2.5 }, + { "label": "I", "matrix": [7, 7], "x": 8.5, "y": 2.5 }, + { "label": "O", "matrix": [4, 7], "x": 9.5, "y": 2.5 }, + { "label": "P", "matrix": [0, 7], "x": 10.5, "y": 2.5 }, + { "label": "[", "matrix": [5, 9], "x": 11.5, "y": 2.5 }, + { "label": "]", "matrix": [10, 9], "x": 12.5, "y": 2.5 }, + { "label": "Delete", "matrix": [11, 13], "x": 15.5, "y": 2.5 }, + { "label": "End", "matrix": [8, 11], "x": 16.5, "y": 2.5 }, + { "label": "Page Down", "matrix": [10, 13], "x": 17.5, "y": 2.5 }, + { "label": "Caps Lock", "matrix": [1, 0], "w": 1.75, "x": 0, "y": 3.5 }, + { "label": "A", "matrix": [2, 11], "x": 1.75, "y": 3.5 }, + { "label": "S", "matrix": [2, 0], "x": 2.75, "y": 3.5 }, + { "label": "D", "matrix": [2, 1], "x": 3.75, "y": 3.5 }, + { "label": "F", "matrix": [2, 3], "x": 4.75, "y": 3.5 }, + { "label": "G", "matrix": [2, 4], "x": 5.75, "y": 3.5 }, + { "label": "H", "matrix": [11, 5], "x": 6.75, "y": 3.5 }, + { "label": "J", "matrix": [11, 8], "x": 7.75, "y": 3.5 }, + { "label": "K", "matrix": [11, 6], "x": 8.75, "y": 3.5 }, + { "label": "L", "matrix": [11, 9], "x": 9.75, "y": 3.5 }, + { "label": ";", "matrix": [11, 10], "x": 10.75, "y": 3.5 }, + { "label": "'", "matrix": [11, 12], "x": 11.75, "y": 3.5 }, + { "label": "No", "matrix": [1, 13], "x": 12.75, "y": 3.5 }, + { "label": "Enter", "matrix": [0, 13], "w": 1.25, "h": 2, "x": 13.75, "y": 2.5 }, + { "label": "Shift", "matrix": [4, 15], "w": 1.25, "x": 0, "y": 4.5 }, + { "label": "No", "matrix": [1, 1], "x": 1.25, "y": 4.5 }, + { "label": "Z", "matrix": [2, 5], "x": 2.25, "y": 4.5 }, + { "label": "X", "matrix": [2, 8], "x": 3.25, "y": 4.5 }, + { "label": "C", "matrix": [2, 6], "x": 4.25, "y": 4.5 }, + { "label": "V", "matrix": [2, 9], "x": 5.25, "y": 4.5 }, + { "label": "B", "matrix": [2, 10], "x": 6.25, "y": 4.5 }, + { "label": "N", "matrix": [11, 11], "x": 7.25, "y": 4.5 }, + { "label": "M", "matrix": [11, 0], "x": 8.25, "y": 4.5 }, + { "label": ",", "matrix": [11, 1], "x": 9.25, "y": 4.5 }, + { "label": ".", "matrix": [11, 3], "x": 10.25, "y": 4.5 }, + { "label": "/", "matrix": [11, 4], "x": 11.25, "y": 4.5 }, + { "label": "Shift", "matrix": [1, 15], "w": 2.75, "x": 12.25, "y": 4.5 }, + { "label": "Up", "matrix": [8, 10], "x": 16.5, "y": 4.5 }, + { "label": "Ctrl", "matrix": [4, 14], "w": 1.5, "x": 0, "y": 5.5 }, + { "label": "GUI", "matrix": [3, 11], "x": 1.5, "y": 5.5 }, + { "label": "Alt", "matrix": [0, 12], "w": 1.5, "x": 2.5, "y": 5.5 }, + { "label": "Space", "matrix": [10, 0], "w": 6, "x": 4, "y": 5.5 }, + { "label": "Alt", "matrix": [9, 3], "x": 10, "y": 5.5 }, + { "label": "GUI", "matrix": [5, 10], "w": 1.5, "x": 11, "y": 5.5 }, + { "label": "App", "matrix": [10, 4], "x": 12.5, "y": 5.5 }, + { "label": "Ctrl", "matrix": [1, 14], "w": 1.5, "x": 13.5, "y": 5.5 }, + { "label": "Left", "matrix": [9, 4], "x": 15.5, "y": 5.5 }, + { "label": "Down", "matrix": [10, 11], "x": 16.5, "y": 5.5 }, + { "label": "Right", "matrix": [10, 10], "x": 17.5, "y": 5.5 } + ] + }, + "LAYOUT_tkl_iso_tsangan": { + "layout": [ + { "label": "Esc", "matrix": [0, 1], "x": 0, "y": 0 }, + { "label": "F1", "matrix": [2, 2], "x": 2, "y": 0 }, + { "label": "F2", "matrix": [0, 4], "x": 3, "y": 0 }, + { "label": "F3", "matrix": [0, 5], "x": 4, "y": 0 }, + { "label": "F4", "matrix": [0, 6], "x": 5, "y": 0 }, + { "label": "F5", "matrix": [1, 8], "x": 6.5, "y": 0 }, + { "label": "F6", "matrix": [3, 8], "x": 7.5, "y": 0 }, + { "label": "F7", "matrix": [4, 8], "x": 8.5, "y": 0 }, + { "label": "F8", "matrix": [5, 8], "x": 9.5, "y": 0 }, + { "label": "F9", "matrix": [6, 8], "x": 11, "y": 0 }, + { "label": "F10", "matrix": [6, 10], "x": 12, "y": 0 }, + { "label": "F11", "matrix": [6, 11], "x": 13, "y": 0 }, + { "label": "F12", "matrix": [7, 11], "x": 14, "y": 0 }, + { "label": "Pause / SysReq", "matrix": [6, 13], "x": 15.5, "y": 0 }, + { "label": "Scroll Lock / Num Lock", "matrix": [7, 13], "x": 16.5, "y": 0 }, + { "label": "Pause / Reset", "matrix": [11, 15], "x": 17.5, "y": 0 }, + { "label": "`", "matrix": [0, 0], "x": 0, "y": 1.5 }, + { "label": "1", "matrix": [3, 2], "x": 1, "y": 1.5 }, + { "label": "2", "matrix": [6, 2], "x": 2, "y": 1.5 }, + { "label": "3", "matrix": [7, 2], "x": 3, "y": 1.5 }, + { "label": "4", "matrix": [4, 2], "x": 4, "y": 1.5 }, + { "label": "5", "matrix": [0, 2], "x": 5, "y": 1.5 }, + { "label": "6", "matrix": [1, 7], "x": 6, "y": 1.5 }, + { "label": "7", "matrix": [5, 7], "x": 7, "y": 1.5 }, + { "label": "8", "matrix": [10, 7], "x": 8, "y": 1.5 }, + { "label": "9", "matrix": [9, 7], "x": 9, "y": 1.5 }, + { "label": "0", "matrix": [8, 7], "x": 10, "y": 1.5 }, + { "label": "-", "matrix": [6, 12], "x": 11, "y": 1.5 }, + { "label": "=", "matrix": [6, 9], "x": 12, "y": 1.5 }, + { "label": "Backspace", "matrix": [8, 9], "w": 2, "x": 13, "y": 1.5 }, + { "label": "Insert", "matrix": [8, 12], "x": 15.5, "y": 1.5 }, + { "label": "Home", "matrix": [9, 13], "x": 16.5, "y": 1.5 }, + { "label": "Page Up", "matrix": [10, 12], "x": 17.5, "y": 1.5 }, + { "label": "Tab", "matrix": [2, 12], "w": 1.5, "x": 0, "y": 2.5 }, + { "label": "Q", "matrix": [1, 2], "x": 1.5, "y": 2.5 }, + { "label": "W", "matrix": [5, 2], "x": 2.5, "y": 2.5 }, + { "label": "E", "matrix": [10, 2], "x": 3.5, "y": 2.5 }, + { "label": "R", "matrix": [9, 2], "x": 4.5, "y": 2.5 }, + { "label": "T", "matrix": [8, 2], "x": 5.5, "y": 2.5 }, + { "label": "Y", "matrix": [3, 7], "x": 6.5, "y": 2.5 }, + { "label": "U", "matrix": [6, 7], "x": 7.5, "y": 2.5 }, + { "label": "I", "matrix": [7, 7], "x": 8.5, "y": 2.5 }, + { "label": "O", "matrix": [4, 7], "x": 9.5, "y": 2.5 }, + { "label": "P", "matrix": [0, 7], "x": 10.5, "y": 2.5 }, + { "label": "[", "matrix": [5, 9], "x": 11.5, "y": 2.5 }, + { "label": "]", "matrix": [10, 9], "x": 12.5, "y": 2.5 }, + { "label": "Delete", "matrix": [11, 13], "x": 15.5, "y": 2.5 }, + { "label": "End", "matrix": [8, 11], "x": 16.5, "y": 2.5 }, + { "label": "Page Down", "matrix": [10, 13], "x": 17.5, "y": 2.5 }, + { "label": "Caps Lock", "matrix": [1, 0], "w": 1.75, "x": 0, "y": 3.5 }, + { "label": "A", "matrix": [2, 11], "x": 1.75, "y": 3.5 }, + { "label": "S", "matrix": [2, 0], "x": 2.75, "y": 3.5 }, + { "label": "D", "matrix": [2, 1], "x": 3.75, "y": 3.5 }, + { "label": "F", "matrix": [2, 3], "x": 4.75, "y": 3.5 }, + { "label": "G", "matrix": [2, 4], "x": 5.75, "y": 3.5 }, + { "label": "H", "matrix": [11, 5], "x": 6.75, "y": 3.5 }, + { "label": "J", "matrix": [11, 8], "x": 7.75, "y": 3.5 }, + { "label": "K", "matrix": [11, 6], "x": 8.75, "y": 3.5 }, + { "label": "L", "matrix": [11, 9], "x": 9.75, "y": 3.5 }, + { "label": ";", "matrix": [11, 10], "x": 10.75, "y": 3.5 }, + { "label": "'", "matrix": [11, 12], "x": 11.75, "y": 3.5 }, + { "label": "No", "matrix": [1, 13], "x": 12.75, "y": 3.5 }, + { "label": "Enter", "matrix": [0, 13], "w": 1.25, "h": 2, "x": 13.75, "y": 2.5 }, + { "label": "Shift", "matrix": [4, 15], "w": 1.25, "x": 0, "y": 4.5 }, + { "label": "No", "matrix": [1, 1], "x": 1.25, "y": 4.5 }, + { "label": "Z", "matrix": [2, 5], "x": 2.25, "y": 4.5 }, + { "label": "X", "matrix": [2, 8], "x": 3.25, "y": 4.5 }, + { "label": "C", "matrix": [2, 6], "x": 4.25, "y": 4.5 }, + { "label": "V", "matrix": [2, 9], "x": 5.25, "y": 4.5 }, + { "label": "B", "matrix": [2, 10], "x": 6.25, "y": 4.5 }, + { "label": "N", "matrix": [11, 11], "x": 7.25, "y": 4.5 }, + { "label": "M", "matrix": [11, 0], "x": 8.25, "y": 4.5 }, + { "label": ",", "matrix": [11, 1], "x": 9.25, "y": 4.5 }, + { "label": ".", "matrix": [11, 3], "x": 10.25, "y": 4.5 }, + { "label": "/", "matrix": [11, 4], "x": 11.25, "y": 4.5 }, + { "label": "Shift", "matrix": [1, 15], "w": 2.75, "x": 12.25, "y": 4.5 }, + { "label": "Up", "matrix": [8, 10], "x": 16.5, "y": 4.5 }, + { "label": "Ctrl", "matrix": [4, 14], "w": 1.5, "x": 0, "y": 5.5 }, + { "label": "GUI", "matrix": [3, 11], "x": 1.5, "y": 5.5 }, + { "label": "Alt", "matrix": [0, 12], "w": 1.5, "x": 2.5, "y": 5.5 }, + { "label": "Space", "matrix": [10, 0], "w": 7, "x": 4, "y": 5.5 }, + { "label": "GUI", "matrix": [5, 10], "w": 1.5, "x": 11, "y": 5.5 }, + { "label": "App", "matrix": [10, 4], "x": 12.5, "y": 5.5 }, + { "label": "Ctrl", "matrix": [1, 14], "w": 1.5, "x": 13.5, "y": 5.5 }, + { "label": "Left", "matrix": [9, 4], "x": 15.5, "y": 5.5 }, + { "label": "Down", "matrix": [10, 11], "x": 16.5, "y": 5.5 }, + { "label": "Right", "matrix": [10, 10], "x": 17.5, "y": 5.5 } + ] + } + } +} diff --git a/keyboards/unicomp/mini_m/justify_mike_smith/config.h b/keyboards/unicomp/mini_m/justify_mike_smith/config.h new file mode 100644 index 000000000000..f112ce59b34f --- /dev/null +++ b/keyboards/unicomp/mini_m/justify_mike_smith/config.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#pragma once + +#define DEF_SERIAL_NUMBER "purdea.ro:justify_mike_smith" + +#ifndef SERIAL_NUMBER +#define SERIAL_NUMBER DEF_SERIAL_NUMBER +#endif + +#define MATRIX_ROWS 12 +#define MATRIX_COLS 16 + +#define WEAR_LEVELING_LOGICAL_SIZE 16384 +#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2) + +// with eager debouncing the default is not good enough: +#define DEBOUNCE 10 diff --git a/keyboards/unicomp/mini_m/justify_mike_smith/info.json b/keyboards/unicomp/mini_m/justify_mike_smith/info.json new file mode 100644 index 000000000000..bd9e895e70a1 --- /dev/null +++ b/keyboards/unicomp/mini_m/justify_mike_smith/info.json @@ -0,0 +1,29 @@ +{ + "manufacturer": "Unicomp", + "maintainer": "purdeaandrei", + "url": "https://github.com/purdeaandrei/MiniRazz", + "usb": { + "device_version": "0.0.1", + "pid": "0x27DB", + "vid": "0x16C0" + }, + "keyboard_name": "Mini M (Justify Mike Smith)", + "processor": "RP2040", + "bootloader": "rp2040", + "board": "GENERIC_RP_RP2040", + "matrix_pins": { + "ghost": true, + "io_delay": 4, + "cols": [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null], + "rows": [null, null, null, null, null, null, null, null, null, null, null, null] + }, + "indicators": { + "on_state": 0, + "num_lock": "GP6", + "caps_lock": "GP7", + "scroll_lock": "GP8" + }, + "bootmagic": { + "matrix": [0, 1] + } +} diff --git a/keyboards/unicomp/mini_m/justify_mike_smith/justify_mike_smith.c b/keyboards/unicomp/mini_m/justify_mike_smith/justify_mike_smith.c new file mode 100644 index 000000000000..e923128fb04f --- /dev/null +++ b/keyboards/unicomp/mini_m/justify_mike_smith/justify_mike_smith.c @@ -0,0 +1,23 @@ +/* Copyright 2023 Purdea Andrei + * + * 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 . + */ + +#include +void board_init(void) { + /* The following sets the QSPI drive strengths to 2mA with a slow slew rate. */ + for (int gpio=0;gpioio[gpio] &= ~(PADS_QSPI_GPIO_QSPI_SCLK_DRIVE_BITS | PADS_QSPI_GPIO_QSPI_SCLK_SLEWFAST_BITS); + } +} diff --git a/keyboards/unicomp/mini_m/justify_mike_smith/matrix.c b/keyboards/unicomp/mini_m/justify_mike_smith/matrix.c new file mode 100644 index 000000000000..9c0ec5b41c5f --- /dev/null +++ b/keyboards/unicomp/mini_m/justify_mike_smith/matrix.c @@ -0,0 +1,90 @@ +/* Copyright 2023 Purdea Andrei + * + * 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 . + */ + +#include "quantum.h" +#include + +#define LEDS_COMMON_ANODE GP5 +#define DEC_A0 GP0 +#define DEC_A1 GP1 +#define DEC_A2 GP2 +#define DEC_EN_U1 GP3 +#define DEC_EN_U2 GP4 +#define ROW_MIN_GPIO GP11 + +matrix_row_t previous_matrix[MATRIX_ROWS]; + +static inline void setPinOutput_writeLow(pin_t pin) { + setPinOutput(pin); + writePinLow(pin); +} + +void matrix_init_custom(void) { + setPinOutput(LEDS_COMMON_ANODE); + writePinHigh(LEDS_COMMON_ANODE); + setPinOutput(DEC_EN_U1); + writePinHigh(DEC_EN_U1); + setPinOutput(DEC_EN_U2); + writePinHigh(DEC_EN_U2); + setPinOutput(DEC_A0); + setPinOutput(DEC_A1); + setPinOutput(DEC_A2); + + for (int i=0; i<=11; i++) + { + setPinInputHigh(ROW_MIN_GPIO + i); + } +} + +bool matrix_has_it_changed(const matrix_row_t current_matrix[]) { + bool changed = false; + for (uint8_t row=0; row> 1) & 1); + writePin(DEC_A2, (col >> 2) & 1); + if (col & 0b1000) { + writePinLow(DEC_EN_U2); + } else { + writePinLow(DEC_EN_U1); + } + matrix_output_select_delay(); + uint32_t keys_pressed = (~palReadPort(PAL_PORT(GP0)) >> (ROW_MIN_GPIO - GP0)) & 0xfff; + if (col & 0b1000) { + writePinHigh(DEC_EN_U2); + } else { + writePinHigh(DEC_EN_U1); + } + matrix_output_unselect_delay(col, !!keys_pressed); + for (int row = 0; row < 12; row++) { + if (keys_pressed & (1 << row)) { + current_matrix[row] |= bit; + } else { + current_matrix[row] &= ~bit; + } + } + } + return matrix_has_it_changed(current_matrix); +} diff --git a/keyboards/unicomp/mini_m/justify_mike_smith/readme.md b/keyboards/unicomp/mini_m/justify_mike_smith/readme.md new file mode 100644 index 000000000000..010367c0ca54 --- /dev/null +++ b/keyboards/unicomp/mini_m/justify_mike_smith/readme.md @@ -0,0 +1,31 @@ +# unicomp/mini_m/justify_mike_smith + +![unicomp/mini_m/justify_mike_smith](https://i.imgur.com/JFXIz4Oh.jpeg) + +Supports the Unicomp Mini M keyboard, with the "Justify with Mike Smith" OEM controller. + +* Keyboard Maintainer: [Purdea Andrei](https://github.com/purdeaandrei) +* Hardware Supported: Unicomp Mini M Keyboard + OEM Justify with Mike Smith controller +* Hardware Availability: + * [keyboard](https://www.pckeyboard.com/) + +To place the keyboard into bootloader mode in order to flash it, hold the ESC key while plugging the board in. +It's possible to make this feature not work, by flashing the wrong firmware onto the keyboard. +If that happens, open up the keyboard, and hold the pushbutton on the controller while plugging in the keyboard. + +A couple features of this keyboard implementation: +* The QK_USER_0 keycode is defined as Scroll Lock, when pressed without modifiers, and Num Lock when pressed with shift. + * You can disable this with `#define DISABLE_CUSTOM_NUMSLCK_KEYCODE` in your keymap's config.h +* Layer 1 is a special layer that is activated when the NumLock locklight is on. This is in order to support the embedded numpad. + * You can disable this with `#define DISABLE_NUMPAD_LAYER` in your keymap's config.h + * You can change the number of the activated layer by `#define NUMPAD_LAYER ` in your keymap's config.h + +Make example for this keyboard (after setting up your build environment): + + make unicomp/mini_m/justify_mike_smith:default + +Flashing example for this keyboard: + + make unicomp/mini_m/justify_mike_smith:default:flash + +See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). diff --git a/keyboards/unicomp/mini_m/justify_mike_smith/rules.mk b/keyboards/unicomp/mini_m/justify_mike_smith/rules.mk new file mode 100644 index 000000000000..b4dc010cab10 --- /dev/null +++ b/keyboards/unicomp/mini_m/justify_mike_smith/rules.mk @@ -0,0 +1,13 @@ +# Build Options +# change yes to no to disable +# +BOOTMAGIC_ENABLE = yes +MOUSEKEY_ENABLE = yes # Mouse keys +EXTRAKEY_ENABLE = yes # Audio control and System control +CONSOLE_ENABLE = no # Console for debug +COMMAND_ENABLE = no # Commands for debug and configuration +NKRO_ENABLE = yes # USB Nkey Rollover + +SRC += matrix.c +CUSTOM_MATRIX = lite +DEBOUNCE_TYPE = sym_eager_pk diff --git a/keyboards/unicomp/mini_m/keymaps/default/keymap.c b/keyboards/unicomp/mini_m/keymaps/default/keymap.c new file mode 100644 index 000000000000..61120269cf8e --- /dev/null +++ b/keyboards/unicomp/mini_m/keymaps/default/keymap.c @@ -0,0 +1,41 @@ +/* Copyright 2021 stevendlander + * + * 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 . + */ +#include QMK_KEYBOARD_H + +// Layer shortcuts +enum custom_layers { + _QWERTY, + _NUMPAD, +}; + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [_QWERTY] = LAYOUT_all( + 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, QK_USER_0, 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_BSPC, KC_INS, KC_HOME, KC_PGUP, + 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_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_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_RSFT, KC_UP, + KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT + ), + [_NUMPAD] = LAYOUT_all( + 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_P7, KC_P8, KC_P9, KC_TRNS, KC_PMNS, KC_PPLS, 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_P4, KC_P5, KC_P6, 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_P1, KC_P2, KC_P3, KC_PAST, KC_TRNS, KC_TRNS, KC_PENT, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P0, KC_TRNS, KC_PDOT, KC_PSLS, 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/unicomp/mini_m/mini_m.c b/keyboards/unicomp/mini_m/mini_m.c new file mode 100644 index 000000000000..4f42b34592b3 --- /dev/null +++ b/keyboards/unicomp/mini_m/mini_m.c @@ -0,0 +1,73 @@ +/* Copyright 2021 stevendlander + * + * 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 . + */ +#include QMK_KEYBOARD_H + +#ifndef NUMPAD_LAYER +#define NUMPAD_LAYER 1 +#endif + +#ifndef DISABLE_CUSTOM_NUMSLCK_KEYCODE + +enum custom_keycodes { + NUMSLCK = QK_USER_0, // Num Lock on shift, Scroll Lock regularly +}; + +// Mod key detection +#define MODS_SHIFT_MASK (MOD_BIT(KC_LSFT)|MOD_BIT(KC_RSFT)) +#define MODS_ALT_MASK (MOD_BIT(KC_LALT)|MOD_BIT(KC_RALT)) + +bool process_record_kb(uint16_t keycode, keyrecord_t *record) { + switch (keycode) { + case NUMSLCK: { + if (record->event.pressed) { + if (keyboard_report->mods & MODS_SHIFT_MASK) { + tap_code(KC_NUM); + } else { + register_code(KC_SCRL); + } + } else { + unregister_code(KC_SCRL); + } + break; + } + } + + return process_record_user(keycode, record); +} + +#endif + +#ifndef DISABLE_NUMPAD_LAYER + +bool led_update_kb(led_t led_state) { + bool res = led_update_user(led_state); + if (res) { + static bool num_state = false; + if (num_state != led_state.num_lock) { + if (led_state.num_lock) { + layer_on(NUMPAD_LAYER); + } else { + layer_off(NUMPAD_LAYER); + } + num_state = led_state.num_lock; + } + + led_update_ports(led_state); + } + return res; +} + +#endif diff --git a/keyboards/unicomp/mini_m/minirazz/config.h b/keyboards/unicomp/mini_m/minirazz/config.h new file mode 100644 index 000000000000..96e273d8f20c --- /dev/null +++ b/keyboards/unicomp/mini_m/minirazz/config.h @@ -0,0 +1,25 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#pragma once + +#define DEF_SERIAL_NUMBER "purdea.ro:minirazz" + +#ifndef SERIAL_NUMBER +#define SERIAL_NUMBER DEF_SERIAL_NUMBER +#endif + +#define MATRIX_ROWS 12 +#define MATRIX_COLS 16 + +#define SOLENOID_PIN GP25 +#define HAPTIC_ENABLE_PIN GP23 +#define SOLENOID_DEFAULT_DWELL 20 +#define SOLENOID_MIN_DWELL 4 +#define HAPTIC_OFF_IN_LOW_POWER 1 +#define NO_HAPTIC_MOD + +#define WEAR_LEVELING_LOGICAL_SIZE 16384 +#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2) + +// with eager debouncing the default is not good enough: +#define DEBOUNCE 10 diff --git a/keyboards/unicomp/mini_m/minirazz/info.json b/keyboards/unicomp/mini_m/minirazz/info.json new file mode 100644 index 000000000000..f0c7c2127b11 --- /dev/null +++ b/keyboards/unicomp/mini_m/minirazz/info.json @@ -0,0 +1,29 @@ +{ + "manufacturer": "Unicomp", + "maintainer": "purdeaandrei", + "url": "https://github.com/purdeaandrei/MiniRazz", + "usb": { + "device_version": "0.0.1", + "pid": "0x27DB", + "vid": "0x16C0" + }, + "keyboard_name": "Mini M (MiniRazz)", + "processor": "RP2040", + "bootloader": "rp2040", + "board": "GENERIC_RP_RP2040", + "matrix_pins": { + "ghost": true, + "io_delay": 4, + "cols": [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null], + "rows": [null, null, null, null, null, null, null, null, null, null, null, null] + }, + "indicators": { + "on_state": 0, + "num_lock": "GP22", + "caps_lock": "GP21", + "scroll_lock": "GP20" + }, + "bootmagic": { + "matrix": [0, 1] + } +} diff --git a/keyboards/unicomp/mini_m/minirazz/matrix.c b/keyboards/unicomp/mini_m/minirazz/matrix.c new file mode 100644 index 000000000000..26ae205aab4d --- /dev/null +++ b/keyboards/unicomp/mini_m/minirazz/matrix.c @@ -0,0 +1,83 @@ +/* Copyright 2023 Purdea Andrei + * + * 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 . + */ + +#include "quantum.h" +#include + +#define SHIFTREG_CLK GP26 +#define SHIFTREG_SHLD GP27 +#define SHIFTREG_DATA GP24 + +#define SHIFTREG_DELAY_CYCLES 8 /* 64 ns at 125 MHz */ + +matrix_row_t previous_matrix[MATRIX_ROWS]; + +static inline void setPinOutput_writeLow(pin_t pin) { + setPinOutput(pin); + writePinLow(pin); +} + +void matrix_init_custom(void) { + for (int i=0; i<=7; i++) + { + setPinInputHigh(i); + } + for (int i=8; i<=19; i++) + { + writePinLow(i); + setPinInputHigh(i); + } + + setPinInput(SHIFTREG_DATA); + writePinLow(SHIFTREG_CLK); + setPinOutput(SHIFTREG_CLK); + writePinLow(SHIFTREG_SHLD); + setPinOutput(SHIFTREG_SHLD); +} + +bool matrix_has_it_changed(const matrix_row_t current_matrix[]) { + bool changed = false; + for (uint8_t row=0; row=0;column--) { + int bit = !!(readPin(SHIFTREG_DATA)); + writePinHigh(SHIFTREG_CLK); + wait_cpuclock(SHIFTREG_DELAY_CYCLES); + read_result |= bit << column; + writePinLow(SHIFTREG_CLK); + wait_cpuclock(SHIFTREG_DELAY_CYCLES); + } + writePinLow(SHIFTREG_SHLD); + matrix_row_t current_row_value = ~(bitrev(read_result) | (bitrev(high_byte) << 8)); + matrix_output_unselect_delay(row, current_row_value != 0); + current_matrix[row] = current_row_value; + } + return matrix_has_it_changed(current_matrix); +} diff --git a/keyboards/unicomp/mini_m/minirazz/minirazz.c b/keyboards/unicomp/mini_m/minirazz/minirazz.c new file mode 100644 index 000000000000..e923128fb04f --- /dev/null +++ b/keyboards/unicomp/mini_m/minirazz/minirazz.c @@ -0,0 +1,23 @@ +/* Copyright 2023 Purdea Andrei + * + * 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 . + */ + +#include +void board_init(void) { + /* The following sets the QSPI drive strengths to 2mA with a slow slew rate. */ + for (int gpio=0;gpioio[gpio] &= ~(PADS_QSPI_GPIO_QSPI_SCLK_DRIVE_BITS | PADS_QSPI_GPIO_QSPI_SCLK_SLEWFAST_BITS); + } +} diff --git a/keyboards/unicomp/mini_m/minirazz/readme.md b/keyboards/unicomp/mini_m/minirazz/readme.md new file mode 100644 index 000000000000..809607e5b6f2 --- /dev/null +++ b/keyboards/unicomp/mini_m/minirazz/readme.md @@ -0,0 +1,32 @@ +# unicomp/mini_m/minirazz + +![unicomp/mini_m/minirazz](https://i.imgur.com/JFXIz4Oh.jpeg) + +Supports the Unicomp Mini M keyboard, with the "MiniRazz" open hardware replacement controller. + +* Keyboard Maintainer: [Purdea Andrei](https://github.com/purdeaandrei) +* Hardware Supported: Unicomp Mini M Keyboard + MiniRazz controller +* Hardware Availability: + * [controller](https://github.com/purdeaandrei/MiniRazz) + * [keyboard](https://www.pckeyboard.com/) + +To place the keyboard into bootloader mode in order to flash it, hold the ESC key while plugging the board in. +It's possible to make this feature not work, by flashing the wrong firmware onto the keyboard. +If that happens, open up the keyboard, and hold the pushbutton on the controller while plugging in the keyboard. + +A couple features of this keyboard implementation: +* The QK_USER_0 keycode is defined as Scroll Lock, when pressed without modifiers, and Num Lock when pressed with shift. + * You can disable this with `#define DISABLE_CUSTOM_NUMSLCK_KEYCODE` in your keymap's config.h +* Layer 1 is a special layer that is activated when the NumLock locklight is on. This is in order to support the embedded numpad. + * You can disable this with `#define DISABLE_NUMPAD_LAYER` in your keymap's config.h + * You can change the number of the activated layer by `#define NUMPAD_LAYER ` in your keymap's config.h + +Make example for this keyboard (after setting up your build environment): + + make unicomp/mini_m/minirazz:default + +Flashing example for this keyboard: + + make unicomp/mini_m/minirazz:default:flash + +See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). diff --git a/keyboards/unicomp/mini_m/minirazz/rules.mk b/keyboards/unicomp/mini_m/minirazz/rules.mk new file mode 100644 index 000000000000..ad3601bb55e1 --- /dev/null +++ b/keyboards/unicomp/mini_m/minirazz/rules.mk @@ -0,0 +1,16 @@ +# Build Options +# change yes to no to disable +# +BOOTMAGIC_ENABLE = yes +MOUSEKEY_ENABLE = yes # Mouse keys +EXTRAKEY_ENABLE = yes # Audio control and System control +CONSOLE_ENABLE = no # Console for debug +COMMAND_ENABLE = no # Commands for debug and configuration +NKRO_ENABLE = yes # USB Nkey Rollover + +SRC += matrix.c +CUSTOM_MATRIX = lite +DEBOUNCE_TYPE = sym_eager_pk + +HAPTIC_ENABLE = yes +HAPTIC_DRIVER = SOLENOID