1
0
Fork 0

Move layouts for direct_pins boards to data driven (#19872)

This commit is contained in:
Ryan 2023-02-19 18:55:12 +11:00 committed by GitHub
parent 2222836f09
commit e837a32b2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
231 changed files with 965 additions and 3523 deletions

View file

@ -1,4 +0,0 @@
// Copyright 2021 Danny Nguyen (@nooges)
// SPDX-License-Identifier: GPL-2.0-or-later
#include "bamfk1.h"

View file

@ -1,14 +0,0 @@
// Copyright 2021 Danny Nguyen (@nooges)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include "quantum.h"
#define LAYOUT( \
k00, e01, e02, \
e01a, e01b, e02a, e02b \
) { \
{ k00, e01, e02, KC_NO }, \
{ e01a, e01b, e02a, e02b } \
}

View file

@ -19,14 +19,14 @@
"layouts": {
"LAYOUT": {
"layout": [
{"label": "k00", "x": 1.5, "y": 0, "h":2, "w": 2},
{"label": "k01", "x": 0.5, "y": 2.25},
{"label": "k02", "x": 3.5, "y": 2.25},
{"x": 1.5, "y": 0, "h":2, "w": 2, "matrix": [0, 0]},
{"x": 0.5, "y": 2.25, "matrix": [0, 1]},
{"x": 3.5, "y": 2.25, "matrix": [0, 2]},
{"label": "k10", "x": 0, "y": 3.5},
{"label": "k11", "x": 1, "y": 3.5},
{"label": "k12", "x": 3, "y": 3.5},
{"label": "k13", "x": 4, "y": 3.5}
{"x": 0, "y": 3.5, "matrix": [1, 0]},
{"x": 1, "y": 3.5, "matrix": [1, 1]},
{"x": 3, "y": 3.5, "matrix": [1, 2]},
{"x": 4, "y": 3.5, "matrix": [1, 3]}
]
}
}

View file

@ -1 +0,0 @@
#include "bdn9.h"

View file

@ -1,7 +0,0 @@
#pragma once
#ifdef KEYBOARD_keebio_bdn9_rev1
#include "rev1.h"
#elif KEYBOARD_keebio_bdn9_rev2
#include "rev2.h"
#endif

View file

@ -8,15 +8,15 @@
"layouts": {
"LAYOUT": {
"layout": [
{"x":0, "y":0},
{"x":1, "y":0},
{"x":2, "y":0},
{"x":0, "y":1},
{"x":1, "y":1},
{"x":2, "y":1},
{"x":0, "y":2},
{"x":1, "y":2},
{"x":2, "y":2}
{"x":0, "y":0, "matrix": [0, 0]},
{"x":1, "y":0, "matrix": [0, 1]},
{"x":2, "y":0, "matrix": [0, 2]},
{"x":0, "y":1, "matrix": [1, 0]},
{"x":1, "y":1, "matrix": [1, 1]},
{"x":2, "y":1, "matrix": [1, 2]},
{"x":0, "y":2, "matrix": [2, 0]},
{"x":1, "y":2, "matrix": [2, 1]},
{"x":2, "y":2, "matrix": [2, 2]}
]
}
}

View file

@ -1,4 +1,4 @@
#include "rev1.h"
#include "quantum.h"
void eeconfig_init_kb(void) {
#ifdef BACKLIGHT_ENABLE

View file

@ -1,38 +0,0 @@
/* Copyright 2019 Danny Nguyen <danny@keeb.io>
*
* 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 "bdn9.h"
#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( \
KA1, KA2, KA3, \
KB1, KB2, KB3, \
KC1, KC2, KC3 \
) \
{ \
{ KA1, KA2, KA3 }, \
{ KB1, KB2, KB3 }, \
{ KC1, KC2, KC3 } \
}

View file

@ -1,4 +1,4 @@
#include "rev2.h"
#include "quantum.h"
#ifdef RGB_MATRIX_ENABLE
led_config_t g_led_config = { {

View file

@ -1,38 +0,0 @@
/* Copyright 2020 Danny Nguyen <danny@keeb.io>
*
* 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 "bdn9.h"
#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( \
KA1, KA2, KA3, \
KB1, KB2, KB3, \
KC1, KC2, KC3 \
) \
{ \
{ KA1, KA2, KA3 }, \
{ KB1, KB2, KB3 }, \
{ KC1, KC2, KC3 } \
}

View file

@ -1 +0,0 @@
#include "choconum.h"

View file

@ -1,49 +0,0 @@
/* Copyright 2020 Keebio
*
* 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"
#define LAYOUT_ortho_5x4( \
KA1, KA2, KA3, KA4, \
KB1, KB2, KB3, KB4, \
KC1, KC2, KC3, KC4, \
KD1, KD2, KD3, KD4, \
KE1, KE2, KE3, KE4 \
) \
{ \
{ KA1, KA2, KA3, KA4 }, \
{ KB1, KB2, KB3, KB4 }, \
{ KC1, KC2, KC3, KC4 }, \
{ KD1, KD2, KD3, KD4 }, \
{ KE1, KE2, KE3, KE4 } \
}
#define LAYOUT_numpad_5x4( \
KA1, KA2, KA3, KA4, \
KB1, KB2, KB3, KB4, \
KC1, KC2, KC3, \
KD1, KD2, KD3, KD4, \
KE1, KE3 \
) \
{ \
{ KA1, KA2, KA3, KA4 }, \
{ KB1, KB2, KB3, KB4 }, \
{ KC1, KC2, KC3, KC_NO }, \
{ KD1, KD2, KD3, KD4 }, \
{ KE1, KC_NO, KE3, KC_NO } \
}

View file

@ -23,55 +23,55 @@
"layouts": {
"LAYOUT_numpad_5x4": {
"layout": [
{"x":0, "y":0},
{"x":1, "y":0},
{"x":2, "y":0},
{"x":3, "y":0},
{"x":0, "y":0, "matrix": [0, 0]},
{"x":1, "y":0, "matrix": [0, 1]},
{"x":2, "y":0, "matrix": [0, 2]},
{"x":3, "y":0, "matrix": [0, 3]},
{"x":0, "y":1},
{"x":1, "y":1},
{"x":2, "y":1},
{"x":3, "y":1, "h":2},
{"x":0, "y":1, "matrix": [1, 0]},
{"x":1, "y":1, "matrix": [1, 1]},
{"x":2, "y":1, "matrix": [1, 2]},
{"x":3, "y":1, "h":2, "matrix": [1, 3]},
{"x":0, "y":2},
{"x":1, "y":2},
{"x":2, "y":2},
{"x":0, "y":2, "matrix": [2, 0]},
{"x":1, "y":2, "matrix": [2, 1]},
{"x":2, "y":2, "matrix": [2, 2]},
{"x":0, "y":3},
{"x":1, "y":3},
{"x":2, "y":3},
{"x":3, "y":3, "h":2},
{"x":0, "y":3, "matrix": [3, 0]},
{"x":1, "y":3, "matrix": [3, 1]},
{"x":2, "y":3, "matrix": [3, 2]},
{"x":3, "y":3, "h":2, "matrix": [3, 3]},
{"x":0, "y":4,"w":2},
{"x":2, "y":4}
{"x":0, "y":4,"w":2, "matrix": [4, 0]},
{"x":2, "y":4, "matrix": [4, 2]}
]
},
"LAYOUT_ortho_5x4": {
"layout": [
{"x":0, "y":0},
{"x":1, "y":0},
{"x":2, "y":0},
{"x":3, "y":0},
{"x":0, "y":0, "matrix": [0, 0]},
{"x":1, "y":0, "matrix": [0, 1]},
{"x":2, "y":0, "matrix": [0, 2]},
{"x":3, "y":0, "matrix": [0, 3]},
{"x":0, "y":1},
{"x":1, "y":1},
{"x":2, "y":1},
{"x":3, "y":1},
{"x":0, "y":1, "matrix": [1, 0]},
{"x":1, "y":1, "matrix": [1, 1]},
{"x":2, "y":1, "matrix": [1, 2]},
{"x":3, "y":1, "matrix": [1, 3]},
{"x":0, "y":2},
{"x":1, "y":2},
{"x":2, "y":2},
{"x":3, "y":2},
{"x":0, "y":2, "matrix": [2, 0]},
{"x":1, "y":2, "matrix": [2, 1]},
{"x":2, "y":2, "matrix": [2, 2]},
{"x":3, "y":2, "matrix": [2, 3]},
{"x":0, "y":3},
{"x":1, "y":3},
{"x":2, "y":3},
{"x":3, "y":3},
{"x":0, "y":3, "matrix": [3, 0]},
{"x":1, "y":3, "matrix": [3, 1]},
{"x":2, "y":3, "matrix": [3, 2]},
{"x":3, "y":3, "matrix": [3, 3]},
{"x":0, "y":4},
{"x":1, "y":4},
{"x":2, "y":4},
{"x":3, "y":4}
{"x":0, "y":4, "matrix": [4, 0]},
{"x":1, "y":4, "matrix": [4, 1]},
{"x":2, "y":4, "matrix": [4, 2]},
{"x":3, "y":4, "matrix": [4, 3]}
]
}
}

View file

@ -18,18 +18,18 @@
"layouts": {
"LAYOUT": {
"layout": [
{ "label": "F1", "x": 0, "y": 0 },
{ "label": "F2", "x": 1, "y": 0 },
{ "label": "F3", "x": 2, "y": 0 },
{ "label": "F4", "x": 3, "y": 0 },
{ "label": "F5", "x": 4, "y": 0 },
{ "label": "F6", "x": 5, "y": 0 },
{ "label": "F7", "x": 6, "y": 0 },
{ "label": "F8", "x": 7, "y": 0 },
{ "label": "F9", "x": 8, "y": 0 },
{ "label": "F10", "x": 9, "y": 0 },
{ "label": "F11", "x": 10, "y": 0 },
{ "label": "F12", "x": 11, "y": 0 }
{ "x": 0, "y": 0, "matrix": [0, 0] },
{ "x": 1, "y": 0, "matrix": [0, 1] },
{ "x": 2, "y": 0, "matrix": [0, 2] },
{ "x": 3, "y": 0, "matrix": [0, 3] },
{ "x": 4, "y": 0, "matrix": [0, 4] },
{ "x": 5, "y": 0, "matrix": [0, 5] },
{ "x": 6, "y": 0, "matrix": [0, 6] },
{ "x": 7, "y": 0, "matrix": [0, 7] },
{ "x": 8, "y": 0, "matrix": [0, 8] },
{ "x": 9, "y": 0, "matrix": [0, 9] },
{ "x": 10, "y": 0, "matrix": [0, 10] },
{ "x": 11, "y": 0, "matrix": [0, 11] }
]
}
}

View file

@ -15,7 +15,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 "stick.h"
#include "quantum.h"
#ifdef RGB_MATRIX_ENABLE
led_config_t g_led_config = { {

View file

@ -1,26 +0,0 @@
/*
Copyright 2021 Danny Nguyen <danny@keeb.io>
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"
#define LAYOUT( \
A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12 \
) { \
{A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12} \
}

View file

@ -18,8 +18,8 @@
"layouts": {
"LAYOUT": {
"layout": [
{"x":0, "y":0},
{"x":1, "y":0}
{"x":0, "y":0, "matrix": [0, 0]},
{"x":1, "y":0, "matrix": [0, 1]}
]
}
}

View file

@ -1,16 +0,0 @@
/* Copyright 2019 Keebio
*
* 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 "tukey.h"

View file

@ -1,20 +0,0 @@
/* Copyright 2019 Keebio
*
* 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"
#define LAYOUT(k00, k01) { {k00, k01} }