1
0
Fork 0

Move miscellaneous layouts to data driven (#20516)

This commit is contained in:
Ryan 2023-04-25 02:38:35 +10:00 committed by GitHub
parent 72d2be24f9
commit f111bea3cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
288 changed files with 19592 additions and 21083 deletions

View file

@ -25,180 +25,194 @@
"layouts": {
"LAYOUT_continuous_fnrow": {
"layout": [
{"label":"Esc", "x":0, "y":0},
{"label":"F1", "x":1, "y":0},
{"label":"F2", "x":2, "y":0},
{"label":"F3", "x":3, "y":0},
{"label":"F4", "x":4, "y":0},
{"label":"F5", "x":5, "y":0},
{"label":"F6", "x":6, "y":0},
{"label":"F7", "x":7, "y":0},
{"label":"F8", "x":8, "y":0},
{"label":"F9", "x":9, "y":0},
{"label":"F10", "x":10, "y":0},
{"label":"F11", "x":11, "y":0},
{"label":"F12", "x":12, "y":0},
{"label":"Print Screen", "x":13, "y":0},
{"label":"Scroll Lock", "x":14, "y":0},
{"label":"Pause", "x":15, "y":0},
{"label":"~", "x":0, "y":1},
{"label":"!", "x":1, "y":1},
{"label":"@", "x":2, "y":1},
{"label":"#", "x":3, "y":1},
{"label":"$", "x":4, "y":1},
{"label":"%", "x":5, "y":1},
{"label":"^", "x":6, "y":1},
{"label":"&", "x":7, "y":1},
{"label":"*", "x":8, "y":1},
{"label":"(", "x":9, "y":1},
{"label":")", "x":10, "y":1},
{"label":"_", "x":11, "y":1},
{"label":"+", "x":12, "y":1},
{"label":"Back Space", "x":13, "y":1},
{"label":"Delete", "x":14, "y":1},
{"label":"Home", "x":15, "y":1},
{"label":"Tab", "x":0, "y":2, "w":1.5},
{"label":"Q", "x":1.5, "y":2},
{"label":"W", "x":2.5, "y":2},
{"label":"E", "x":3.5, "y":2},
{"label":"R", "x":4.5, "y":2},
{"label":"T", "x":5.5, "y":2},
{"label":"Y", "x":6.5, "y":2},
{"label":"U", "x":7.5, "y":2},
{"label":"I", "x":8.5, "y":2},
{"label":"O", "x":9.5, "y":2},
{"label":"P", "x":10.5, "y":2},
{"label":"{", "x":11.5, "y":2},
{"label":"}", "x":12.5, "y":2},
{"label":"|", "x":13.5, "y":2, "w":1.5},
{"label":"End", "x":15, "y":2},
{"label":"Caps Lock", "x":0, "y":3, "w":1.75},
{"label":"A", "x":1.75, "y":3},
{"label":"S", "x":2.75, "y":3},
{"label":"D", "x":3.75, "y":3},
{"label":"F", "x":4.75, "y":3},
{"label":"G", "x":5.75, "y":3},
{"label":"H", "x":6.75, "y":3},
{"label":"J", "x":7.75, "y":3},
{"label":"K", "x":8.75, "y":3},
{"label":"L", "x":9.75, "y":3},
{"label":":", "x":10.75, "y":3},
{"label":"\"", "x":11.75, "y":3},
{"label":"Enter", "x":12.75, "y":3, "w":2.25},
{"label":"PgUp", "x":15, "y":3},
{"label":"Shift", "x":0, "y":4, "w":1.25},
{"label":"|", "x":1.25, "y":4},
{"label":"Z", "x":2.25, "y":4},
{"label":"X", "x":3.25, "y":4},
{"label":"C", "x":4.25, "y":4},
{"label":"V", "x":5.25, "y":4},
{"label":"B", "x":6.25, "y":4},
{"label":"N", "x":7.25, "y":4},
{"label":"M", "x":8.25, "y":4},
{"label":"<", "x":9.25, "y":4},
{"label":">", "x":10.25, "y":4},
{"label":"?", "x":11.25, "y":4},
{"label":"Shift", "x":12.25, "y":4, "w":1.75},
{"label":"&uarr;", "x":14, "y":4},
{"label":"PgDn", "x":15, "y":4},
{"label":"Ctrl", "x":0, "y":5, "w":1.25},
{"label":"Win", "x":1.25, "y":5, "w":1.25},
{"label":"Alt", "x":2.5, "y":5, "w":1.25},
{"x":3.75, "y":5, "w":6.25},
{"label":"Alt", "x":10, "y":5},
{"label":"Win", "x":11, "y":5},
{"label":"Ctrl", "x":12, "y":5},
{"label":"&larr;", "x":13, "y":5},
{"label":"&darr;", "x":14, "y":5},
{"label":"&rarr;", "x":15, "y":5}
]
{"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, "y": 0},
{"matrix": [1, 2], "x": 5, "y": 0},
{"matrix": [0, 3], "x": 6, "y": 0},
{"matrix": [1, 3], "x": 7, "y": 0},
{"matrix": [0, 4], "x": 8, "y": 0},
{"matrix": [1, 4], "x": 9, "y": 0},
{"matrix": [0, 5], "x": 10, "y": 0},
{"matrix": [1, 5], "x": 11, "y": 0},
{"matrix": [0, 6], "x": 12, "y": 0},
{"matrix": [1, 6], "x": 13, "y": 0},
{"matrix": [0, 7], "x": 14, "y": 0},
{"matrix": [1, 7], "x": 15, "y": 0},
{"matrix": [2, 0], "x": 0, "y": 1},
{"matrix": [3, 0], "x": 1, "y": 1},
{"matrix": [2, 1], "x": 2, "y": 1},
{"matrix": [3, 1], "x": 3, "y": 1},
{"matrix": [2, 2], "x": 4, "y": 1},
{"matrix": [3, 2], "x": 5, "y": 1},
{"matrix": [2, 3], "x": 6, "y": 1},
{"matrix": [3, 3], "x": 7, "y": 1},
{"matrix": [2, 4], "x": 8, "y": 1},
{"matrix": [3, 4], "x": 9, "y": 1},
{"matrix": [2, 5], "x": 10, "y": 1},
{"matrix": [3, 5], "x": 11, "y": 1},
{"matrix": [2, 6], "x": 12, "y": 1},
{"matrix": [3, 6], "x": 13, "y": 1},
{"matrix": [2, 7], "x": 14, "y": 1},
{"matrix": [3, 7], "x": 15, "y": 1},
{"matrix": [4, 0], "x": 0, "y": 2, "w": 1.5},
{"matrix": [5, 0], "x": 1.5, "y": 2},
{"matrix": [4, 1], "x": 2.5, "y": 2},
{"matrix": [5, 1], "x": 3.5, "y": 2},
{"matrix": [4, 2], "x": 4.5, "y": 2},
{"matrix": [5, 2], "x": 5.5, "y": 2},
{"matrix": [4, 3], "x": 6.5, "y": 2},
{"matrix": [5, 3], "x": 7.5, "y": 2},
{"matrix": [4, 4], "x": 8.5, "y": 2},
{"matrix": [5, 4], "x": 9.5, "y": 2},
{"matrix": [4, 5], "x": 10.5, "y": 2},
{"matrix": [5, 5], "x": 11.5, "y": 2},
{"matrix": [4, 6], "x": 12.5, "y": 2},
{"matrix": [4, 7], "x": 13.5, "y": 2, "w": 1.5},
{"matrix": [5, 7], "x": 15, "y": 2},
{"matrix": [6, 0], "x": 0, "y": 3, "w": 1.75},
{"matrix": [7, 0], "x": 1.75, "y": 3},
{"matrix": [6, 1], "x": 2.75, "y": 3},
{"matrix": [7, 1], "x": 3.75, "y": 3},
{"matrix": [6, 2], "x": 4.75, "y": 3},
{"matrix": [7, 2], "x": 5.75, "y": 3},
{"matrix": [6, 3], "x": 6.75, "y": 3},
{"matrix": [7, 3], "x": 7.75, "y": 3},
{"matrix": [6, 4], "x": 8.75, "y": 3},
{"matrix": [7, 4], "x": 9.75, "y": 3},
{"matrix": [6, 5], "x": 10.75, "y": 3},
{"matrix": [7, 5], "x": 11.75, "y": 3},
{"matrix": [7, 6], "x": 12.75, "y": 3, "w": 2.25},
{"matrix": [7, 7], "x": 15, "y": 3},
{"matrix": [8, 0], "x": 0, "y": 4, "w": 1.25},
{"matrix": [9, 0], "x": 1.25, "y": 4},
{"matrix": [8, 1], "x": 2.25, "y": 4},
{"matrix": [9, 1], "x": 3.25, "y": 4},
{"matrix": [8, 2], "x": 4.25, "y": 4},
{"matrix": [9, 2], "x": 5.25, "y": 4},
{"matrix": [8, 3], "x": 6.25, "y": 4},
{"matrix": [9, 3], "x": 7.25, "y": 4},
{"matrix": [8, 4], "x": 8.25, "y": 4},
{"matrix": [9, 4], "x": 9.25, "y": 4},
{"matrix": [8, 5], "x": 10.25, "y": 4},
{"matrix": [9, 5], "x": 11.25, "y": 4},
{"matrix": [8, 6], "x": 12.25, "y": 4, "w": 1.75},
{"matrix": [8, 7], "x": 14, "y": 4},
{"matrix": [9, 7], "x": 15, "y": 4},
{"matrix": [10, 0], "x": 0, "y": 5, "w": 1.25},
{"matrix": [11, 0], "x": 1.25, "y": 5, "w": 1.25},
{"matrix": [10, 1], "x": 2.5, "y": 5, "w": 1.25},
{"matrix": [10, 3], "x": 3.75, "y": 5, "w": 6.25},
{"matrix": [10, 5], "x": 10, "y": 5},
{"matrix": [11, 5], "x": 11, "y": 5},
{"matrix": [10, 6], "x": 12, "y": 5},
{"matrix": [11, 6], "x": 13, "y": 5},
{"matrix": [10, 7], "x": 14, "y": 5},
{"matrix": [11, 7], "x": 15, "y": 5}
]
},
"LAYOUT_divided_fnrow": {
"layout": [
{"label":"Esc", "x":0, "y":0},
{"label":"F1", "x":1.5, "y":0},
{"label":"F2", "x":2.5, "y":0},
{"label":"F3", "x":3.5, "y":0},
{"label":"F4", "x":4.5, "y":0},
{"label":"F5", "x":6, "y":0},
{"label":"F6", "x":7, "y":0},
{"label":"F7", "x":8, "y":0},
{"label":"F8", "x":9, "y":0},
{"label":"F9", "x":10.5, "y":0},
{"label":"F10", "x":11.5, "y":0},
{"label":"F11", "x":12.5, "y":0},
{"label":"F12", "x":13.5, "y":0},
{"label":"Print Screen", "x":15, "y":0},
{"label":"~", "x":0, "y":1},
{"label":"!", "x":1, "y":1},
{"label":"@", "x":2, "y":1},
{"label":"#", "x":3, "y":1},
{"label":"$", "x":4, "y":1},
{"label":"%", "x":5, "y":1},
{"label":"^", "x":6, "y":1},
{"label":"&", "x":7, "y":1},
{"label":"*", "x":8, "y":1},
{"label":"(", "x":9, "y":1},
{"label":")", "x":10, "y":1},
{"label":"_", "x":11, "y":1},
{"label":"+", "x":12, "y":1},
{"label":"Back Space", "x":13, "y":1},
{"label":"Delete", "x":14, "y":1},
{"label":"Home", "x":15, "y":1},
{"label":"Tab", "x":0, "y":2, "w":1.5},
{"label":"Q", "x":1.5, "y":2},
{"label":"W", "x":2.5, "y":2},
{"label":"E", "x":3.5, "y":2},
{"label":"R", "x":4.5, "y":2},
{"label":"T", "x":5.5, "y":2},
{"label":"Y", "x":6.5, "y":2},
{"label":"U", "x":7.5, "y":2},
{"label":"I", "x":8.5, "y":2},
{"label":"O", "x":9.5, "y":2},
{"label":"P", "x":10.5, "y":2},
{"label":"{", "x":11.5, "y":2},
{"label":"}", "x":12.5, "y":2},
{"label":"|", "x":13.5, "y":2, "w":1.5},
{"label":"End", "x":15, "y":2},
{"label":"Caps Lock", "x":0, "y":3, "w":1.75},
{"label":"A", "x":1.75, "y":3},
{"label":"S", "x":2.75, "y":3},
{"label":"D", "x":3.75, "y":3},
{"label":"F", "x":4.75, "y":3},
{"label":"G", "x":5.75, "y":3},
{"label":"H", "x":6.75, "y":3},
{"label":"J", "x":7.75, "y":3},
{"label":"K", "x":8.75, "y":3},
{"label":"L", "x":9.75, "y":3},
{"label":":", "x":10.75, "y":3},
{"label":"\"", "x":11.75, "y":3},
{"label":"Enter", "x":12.75, "y":3, "w":2.25},
{"label":"PgUp", "x":15, "y":3},
{"label":"Shift", "x":0, "y":4, "w":1.25},
{"label":"|", "x":1.25, "y":4},
{"label":"Z", "x":2.25, "y":4},
{"label":"X", "x":3.25, "y":4},
{"label":"C", "x":4.25, "y":4},
{"label":"V", "x":5.25, "y":4},
{"label":"B", "x":6.25, "y":4},
{"label":"N", "x":7.25, "y":4},
{"label":"M", "x":8.25, "y":4},
{"label":"<", "x":9.25, "y":4},
{"label":">", "x":10.25, "y":4},
{"label":"?", "x":11.25, "y":4},
{"label":"Shift", "x":12.25, "y":4, "w":1.75},
{"label":"&uarr;", "x":14, "y":4},
{"label":"PgDn", "x":15, "y":4},
{"label":"Ctrl", "x":0, "y":5, "w":1.25},
{"label":"Win", "x":1.25, "y":5, "w":1.25},
{"label":"Alt", "x":2.5, "y":5, "w":1.25},
{"x":3.75, "y":5, "w":6.25},
{"label":"Alt", "x":10, "y":5},
{"label":"Win", "x":11, "y":5},
{"label":"Ctrl", "x":12, "y":5},
{"label":"&larr;", "x":13, "y":5},
{"label":"&darr;", "x":14, "y":5},
{"label":"&rarr;", "x":15, "y":5}
{"matrix": [0, 0], "x": 0, "y": 0},
{"matrix": [1, 0], "x": 1.5, "y": 0},
{"matrix": [0, 1], "x": 2.5, "y": 0},
{"matrix": [1, 1], "x": 3.5, "y": 0},
{"matrix": [0, 2], "x": 4.5, "y": 0},
{"matrix": [0, 3], "x": 6, "y": 0},
{"matrix": [1, 3], "x": 7, "y": 0},
{"matrix": [0, 4], "x": 8, "y": 0},
{"matrix": [1, 4], "x": 9, "y": 0},
{"matrix": [0, 5], "x": 10.5, "y": 0},
{"matrix": [1, 5], "x": 11.5, "y": 0},
{"matrix": [0, 6], "x": 12.5, "y": 0},
{"matrix": [1, 6], "x": 13.5, "y": 0},
{"matrix": [1, 7], "x": 15, "y": 0},
{"matrix": [2, 0], "x": 0, "y": 1},
{"matrix": [3, 0], "x": 1, "y": 1},
{"matrix": [2, 1], "x": 2, "y": 1},
{"matrix": [3, 1], "x": 3, "y": 1},
{"matrix": [2, 2], "x": 4, "y": 1},
{"matrix": [3, 2], "x": 5, "y": 1},
{"matrix": [2, 3], "x": 6, "y": 1},
{"matrix": [3, 3], "x": 7, "y": 1},
{"matrix": [2, 4], "x": 8, "y": 1},
{"matrix": [3, 4], "x": 9, "y": 1},
{"matrix": [2, 5], "x": 10, "y": 1},
{"matrix": [3, 5], "x": 11, "y": 1},
{"matrix": [2, 6], "x": 12, "y": 1},
{"matrix": [3, 6], "x": 13, "y": 1},
{"matrix": [2, 7], "x": 14, "y": 1},
{"matrix": [3, 7], "x": 15, "y": 1},
{"matrix": [4, 0], "x": 0, "y": 2, "w": 1.5},
{"matrix": [5, 0], "x": 1.5, "y": 2},
{"matrix": [4, 1], "x": 2.5, "y": 2},
{"matrix": [5, 1], "x": 3.5, "y": 2},
{"matrix": [4, 2], "x": 4.5, "y": 2},
{"matrix": [5, 2], "x": 5.5, "y": 2},
{"matrix": [4, 3], "x": 6.5, "y": 2},
{"matrix": [5, 3], "x": 7.5, "y": 2},
{"matrix": [4, 4], "x": 8.5, "y": 2},
{"matrix": [5, 4], "x": 9.5, "y": 2},
{"matrix": [4, 5], "x": 10.5, "y": 2},
{"matrix": [5, 5], "x": 11.5, "y": 2},
{"matrix": [4, 6], "x": 12.5, "y": 2},
{"matrix": [4, 7], "x": 13.5, "y": 2, "w": 1.5},
{"matrix": [5, 7], "x": 15, "y": 2},
{"matrix": [6, 0], "x": 0, "y": 3, "w": 1.75},
{"matrix": [7, 0], "x": 1.75, "y": 3},
{"matrix": [6, 1], "x": 2.75, "y": 3},
{"matrix": [7, 1], "x": 3.75, "y": 3},
{"matrix": [6, 2], "x": 4.75, "y": 3},
{"matrix": [7, 2], "x": 5.75, "y": 3},
{"matrix": [6, 3], "x": 6.75, "y": 3},
{"matrix": [7, 3], "x": 7.75, "y": 3},
{"matrix": [6, 4], "x": 8.75, "y": 3},
{"matrix": [7, 4], "x": 9.75, "y": 3},
{"matrix": [6, 5], "x": 10.75, "y": 3},
{"matrix": [7, 5], "x": 11.75, "y": 3},
{"matrix": [7, 6], "x": 12.75, "y": 3, "w": 2.25},
{"matrix": [7, 7], "x": 15, "y": 3},
{"matrix": [8, 0], "x": 0, "y": 4, "w": 1.25},
{"matrix": [9, 0], "x": 1.25, "y": 4},
{"matrix": [8, 1], "x": 2.25, "y": 4},
{"matrix": [9, 1], "x": 3.25, "y": 4},
{"matrix": [8, 2], "x": 4.25, "y": 4},
{"matrix": [9, 2], "x": 5.25, "y": 4},
{"matrix": [8, 3], "x": 6.25, "y": 4},
{"matrix": [9, 3], "x": 7.25, "y": 4},
{"matrix": [8, 4], "x": 8.25, "y": 4},
{"matrix": [9, 4], "x": 9.25, "y": 4},
{"matrix": [8, 5], "x": 10.25, "y": 4},
{"matrix": [9, 5], "x": 11.25, "y": 4},
{"matrix": [8, 6], "x": 12.25, "y": 4, "w": 1.75},
{"matrix": [8, 7], "x": 14, "y": 4},
{"matrix": [9, 7], "x": 15, "y": 4},
{"matrix": [10, 0], "x": 0, "y": 5, "w": 1.25},
{"matrix": [11, 0], "x": 1.25, "y": 5, "w": 1.25},
{"matrix": [10, 1], "x": 2.5, "y": 5, "w": 1.25},
{"matrix": [10, 3], "x": 3.75, "y": 5, "w": 6.25},
{"matrix": [10, 5], "x": 10, "y": 5},
{"matrix": [11, 5], "x": 11, "y": 5},
{"matrix": [10, 6], "x": 12, "y": 5},
{"matrix": [11, 6], "x": 13, "y": 5},
{"matrix": [10, 7], "x": 14, "y": 5},
{"matrix": [11, 7], "x": 15, "y": 5}
]
}
}

View file

@ -13,7 +13,7 @@
* 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 "lb75.h"
#include "quantum.h"
void matrix_init_kb(void) {

View file

@ -1,73 +0,0 @@
/* Copyright 2019 Ryota Goto
*
* 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 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_continuous_fnrow( \
K000, K010, K001, K011, K002, K012, K003, K013, K004, K014, K005, K015, K006, K016, K007, K017, \
K020, K030, K021, K031, K022, K032, K023, K033, K024, K034, K025, K035, K026, K036, K027, K037, \
K040, K050, K041, K051, K042, K052, K043, K053, K044, K054, K045, K055, K046, K047, K057, \
K060, K070, K061, K071, K062, K072, K063, K073, K064, K074, K065, K075, K076, K077, \
K080, K090, K081, K091, K082, K092, K083, K093, K084, K094, K085, K095, K086, K087, K097, \
K100, K110, K101, K103, K105, K115, K106, K116, K107, K117 \
) \
{ \
{ K000, K001, K002, K003, K004, K005, K006, K007 }, \
{ K010, K011, K012, K013, K014, K015, K016, K017 }, \
{ K020, K021, K022, K023, K024, K025, K026, K027 }, \
{ K030, K031, K032, K033, K034, K035, K036, K037 }, \
{ K040, K041, K042, K043, K044, K045, K046, K047 }, \
{ K050, K051, K052, K053, K054, K055, KC_NO, K057 }, \
{ K060, K061, K062, K063, K064, K065, KC_NO, KC_NO }, \
{ K070, K071, K072, K073, K074, K075, K076, K077 }, \
{ K080, K081, K082, K083, K084, K085, K086, K087 }, \
{ K090, K091, K092, K093, K094, K095, KC_NO, K097 }, \
{ K100, K101, KC_NO, K103, KC_NO, K105, K106, K107 }, \
{ K110, KC_NO, KC_NO, KC_NO, KC_NO, K115, K116, K117 } \
}
#define LAYOUT_divided_fnrow( \
K000, K010, K001, K011, K002, K003, K013, K004, K014, K005, K015, K006, K016, K017, \
K020, K030, K021, K031, K022, K032, K023, K033, K024, K034, K025, K035, K026, K036, K027, K037, \
K040, K050, K041, K051, K042, K052, K043, K053, K044, K054, K045, K055, K046, K047, K057, \
K060, K070, K061, K071, K062, K072, K063, K073, K064, K074, K065, K075, K076, K077, \
K080, K090, K081, K091, K082, K092, K083, K093, K084, K094, K085, K095, K086, K087, K097, \
K100, K110, K101, K103, K105, K115, K106, K116, K107, K117 \
) \
{ \
{ K000, K001, K002, K003, K004, K005, K006, KC_NO }, \
{ K010, K011, KC_NO, K013, K014, K015, K016, K017 }, \
{ K020, K021, K022, K023, K024, K025, K026, K027 }, \
{ K030, K031, K032, K033, K034, K035, K036, K037 }, \
{ K040, K041, K042, K043, K044, K045, K046, K047 }, \
{ K050, K051, K052, K053, K054, K055, KC_NO, K057 }, \
{ K060, K061, K062, K063, K064, K065, KC_NO, KC_NO }, \
{ K070, K071, K072, K073, K074, K075, K076, K077 }, \
{ K080, K081, K082, K083, K084, K085, K086, K087 }, \
{ K090, K091, K092, K093, K094, K095, KC_NO, K097 }, \
{ K100, K101, KC_NO, K103, KC_NO, K105, K106, K107 }, \
{ K110, KC_NO, KC_NO, KC_NO, KC_NO, K115, K116, K117 } \
}