Move single LAYOUT
s to data driven (#20365)
This commit is contained in:
parent
941e159a28
commit
5bd68e3695
1443 changed files with 45214 additions and 59923 deletions
|
@ -1,43 +0,0 @@
|
|||
/* Copyright 2021 Mikołaj Biel
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
/* This is a shortcut to help you visually see your layout.
|
||||
*
|
||||
* The first section contains all of the arguments representing the physical
|
||||
* layout of the board and position of the keys.
|
||||
*
|
||||
* The second converts the arguments into a two-dimensional array which
|
||||
* represents the switch matrix.
|
||||
*/
|
||||
#define LAYOUT( \
|
||||
K000, K001, K002, K003, K004, K405, K406, K407, K408, K409, \
|
||||
K100, K101, K102, K103, K104, K505, K506, K507, K508, K509, \
|
||||
K200, K201, K202, K203, K204, K605, K606, K607, K608, K609, \
|
||||
K302, K303, K304, K705, K706, K707 \
|
||||
) { \
|
||||
{ K000, K001, K002, K003, K004, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \
|
||||
{ K100, K101, K102, K103, K104, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \
|
||||
{ K200, K201, K202, K203, K204, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \
|
||||
{ KC_NO, KC_NO, K302, K303, K304, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \
|
||||
{ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, K405, K406, K407, K408, K409 }, \
|
||||
{ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, K505, K506, K507, K508, K509 }, \
|
||||
{ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, K605, K606, K607, K608, K609 }, \
|
||||
{ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, K705, K706, K707, KC_NO, KC_NO } \
|
||||
}
|
|
@ -18,42 +18,49 @@
|
|||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
{ "label": "Q", "x": 0, "y": 0.25 },
|
||||
{ "label": "W", "x": 1, "y": 0 },
|
||||
{ "label": "E", "x": 2, "y": 0 },
|
||||
{ "label": "R", "x": 3, "y": 0.25 },
|
||||
{ "label": "T", "x": 4, "y": 0.5 },
|
||||
{ "label": "Y", "x": 7.75, "y": 0.5 },
|
||||
{ "label": "U", "x": 8.75, "y": 0.25 },
|
||||
{ "label": "I", "x": 9.75, "y": 0 },
|
||||
{ "label": "O", "x": 10.75, "y": 0 },
|
||||
{ "label": "P", "x": 11.75, "y": 0.25 },
|
||||
{ "label": "A", "x": 0, "y": 1.25 },
|
||||
{ "label": "S", "x": 1, "y": 1 },
|
||||
{ "label": "D", "x": 2, "y": 1 },
|
||||
{ "label": "F", "x": 3, "y": 1.25 },
|
||||
{ "label": "G", "x": 4, "y": 1.5 },
|
||||
{ "label": "H", "x": 7.75, "y": 1.5 },
|
||||
{ "label": "J", "x": 8.75, "y": 1.25 },
|
||||
{ "label": "K", "x": 9.75, "y": 1 },
|
||||
{ "label": "L", "x": 10.75, "y": 1 },
|
||||
{ "label": ";", "x": 11.75, "y": 1.25 },
|
||||
{ "label": "Z", "x": 0, "y": 2.25 },
|
||||
{ "label": "X", "x": 1, "y": 2 },
|
||||
{ "label": "C", "x": 2, "y": 2 },
|
||||
{ "label": "V", "x": 3, "y": 2.25 },
|
||||
{ "label": "B", "x": 4, "y": 2.5 },
|
||||
{ "label": "N", "x": 7.75, "y": 2.5 },
|
||||
{ "label": "M", "x": 8.75, "y": 2.25 },
|
||||
{ "label": ",", "x": 9.75, "y": 2 },
|
||||
{ "label": ".", "x": 10.75, "y": 2 },
|
||||
{ "label": "'", "x": 11.75, "y": 2.25 },
|
||||
{ "label": "ESC", "x": 3.25, "y": 3.75 },
|
||||
{ "label": "SPC", "x": 4.25, "y": 4 },
|
||||
{ "label": "TAB", "x": 5.25, "y": 4.25 },
|
||||
{ "label": "RET", "x": 6.5, "y": 4.25 },
|
||||
{ "label": "BSPC", "x": 7.5, "y": 4 },
|
||||
{ "label": "RESET", "x": 8.5, "y": 3.75 }
|
||||
{"matrix": [0, 0], "x": 0, "y": 0.25},
|
||||
{"matrix": [0, 1], "x": 1, "y": 0},
|
||||
{"matrix": [0, 2], "x": 2, "y": 0},
|
||||
{"matrix": [0, 3], "x": 3, "y": 0.25},
|
||||
{"matrix": [0, 4], "x": 4, "y": 0.5},
|
||||
|
||||
{"matrix": [4, 5], "x": 7.75, "y": 0.5},
|
||||
{"matrix": [4, 6], "x": 8.75, "y": 0.25},
|
||||
{"matrix": [4, 7], "x": 9.75, "y": 0},
|
||||
{"matrix": [4, 8], "x": 10.75, "y": 0},
|
||||
{"matrix": [4, 9], "x": 11.75, "y": 0.25},
|
||||
|
||||
{"matrix": [1, 0], "x": 0, "y": 1.25},
|
||||
{"matrix": [1, 1], "x": 1, "y": 1},
|
||||
{"matrix": [1, 2], "x": 2, "y": 1},
|
||||
{"matrix": [1, 3], "x": 3, "y": 1.25},
|
||||
{"matrix": [1, 4], "x": 4, "y": 1.5},
|
||||
|
||||
{"matrix": [5, 5], "x": 7.75, "y": 1.5},
|
||||
{"matrix": [5, 6], "x": 8.75, "y": 1.25},
|
||||
{"matrix": [5, 7], "x": 9.75, "y": 1},
|
||||
{"matrix": [5, 8], "x": 10.75, "y": 1},
|
||||
{"matrix": [5, 9], "x": 11.75, "y": 1.25},
|
||||
|
||||
{"matrix": [2, 0], "x": 0, "y": 2.25},
|
||||
{"matrix": [2, 1], "x": 1, "y": 2},
|
||||
{"matrix": [2, 2], "x": 2, "y": 2},
|
||||
{"matrix": [2, 3], "x": 3, "y": 2.25},
|
||||
{"matrix": [2, 4], "x": 4, "y": 2.5},
|
||||
|
||||
{"matrix": [6, 5], "x": 7.75, "y": 2.5},
|
||||
{"matrix": [6, 6], "x": 8.75, "y": 2.25},
|
||||
{"matrix": [6, 7], "x": 9.75, "y": 2},
|
||||
{"matrix": [6, 8], "x": 10.75, "y": 2},
|
||||
{"matrix": [6, 9], "x": 11.75, "y": 2.25},
|
||||
|
||||
{"matrix": [3, 2], "x": 3.25, "y": 3.75},
|
||||
{"matrix": [3, 3], "x": 4.25, "y": 4},
|
||||
{"matrix": [3, 4], "x": 5.25, "y": 4.25},
|
||||
|
||||
{"matrix": [7, 5], "x": 6.5, "y": 4.25},
|
||||
{"matrix": [7, 6], "x": 7.5, "y": 4},
|
||||
{"matrix": [7, 7], "x": 8.5, "y": 3.75}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue