diff options
author | Ryan <fauxpark@gmail.com> | 2023-02-23 09:32:18 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-23 09:32:18 +1100 |
commit | ea772468650f7c79a9919a4770d371839985bef0 (patch) | |
tree | 6dc5b1f97efaf2558c19b2261ffc468a9bd5fa19 /keyboards/binepad | |
parent | 3bf01bb9ed202b14f78105db2aa2a75d01fc4323 (diff) |
Migrate some more layouts to data driven (#19889)
Diffstat (limited to 'keyboards/binepad')
-rw-r--r-- | keyboards/binepad/bn003/bn003.c | 16 | ||||
-rw-r--r-- | keyboards/binepad/bn003/bn003.h | 23 | ||||
-rw-r--r-- | keyboards/binepad/bn003/info.json | 18 | ||||
-rw-r--r-- | keyboards/binepad/bn009/bn009.c | 16 | ||||
-rw-r--r-- | keyboards/binepad/bn009/bn009.h | 28 | ||||
-rw-r--r-- | keyboards/binepad/bn009/info.json | 12 |
6 files changed, 14 insertions, 99 deletions
diff --git a/keyboards/binepad/bn003/bn003.c b/keyboards/binepad/bn003/bn003.c deleted file mode 100644 index 80a6d384c0..0000000000 --- a/keyboards/binepad/bn003/bn003.c +++ /dev/null @@ -1,16 +0,0 @@ -/* Copyright 2020 BINEPAD - * - * 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 "bn003.h" diff --git a/keyboards/binepad/bn003/bn003.h b/keyboards/binepad/bn003/bn003.h deleted file mode 100644 index 15311b5348..0000000000 --- a/keyboards/binepad/bn003/bn003.h +++ /dev/null @@ -1,23 +0,0 @@ -/* Copyright 2020 BINEPAD - * - * 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 "quantum.h" - -#define LAYOUT( \ - K00, K01, K02 \ -) { \ - { K00, K01, K02 } \ -} - diff --git a/keyboards/binepad/bn003/info.json b/keyboards/binepad/bn003/info.json index 3dd85b2fe6..222d125281 100644 --- a/keyboards/binepad/bn003/info.json +++ b/keyboards/binepad/bn003/info.json @@ -13,21 +13,9 @@ "layouts": { "LAYOUT": { "layout": [ - { - "label": "K0", - "x": 0, - "y": 0 - }, - { - "label": "K1", - "x": 1, - "y": 0 - }, - { - "label": "K2", - "x": 2, - "y": 0 - } + {"x": 0, "y": 0, "matrix": [0, 0]}, + {"x": 1, "y": 0, "matrix": [0, 1]}, + {"x": 2, "y": 0, "matrix": [0, 2]} ] } } diff --git a/keyboards/binepad/bn009/bn009.c b/keyboards/binepad/bn009/bn009.c deleted file mode 100644 index 48bfb44dae..0000000000 --- a/keyboards/binepad/bn009/bn009.c +++ /dev/null @@ -1,16 +0,0 @@ -/* Copyright 2020 BINEPAD - * - * 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 "bn009.h" diff --git a/keyboards/binepad/bn009/bn009.h b/keyboards/binepad/bn009/bn009.h deleted file mode 100644 index 9a3a23fbcb..0000000000 --- a/keyboards/binepad/bn009/bn009.h +++ /dev/null @@ -1,28 +0,0 @@ -/* Copyright 2020 BINEPAD - * - * 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 "quantum.h" - -#define LAYOUT( \ - k00, k01, k02, \ - k10, k11, k12, \ - k20, k21, k22 \ -) \ -{ \ - { k00, k01, k02 }, \ - { k10, k11, k12 }, \ - { k20, k21, k22 } \ -} - diff --git a/keyboards/binepad/bn009/info.json b/keyboards/binepad/bn009/info.json index 36e90dd10c..8e4221f49f 100644 --- a/keyboards/binepad/bn009/info.json +++ b/keyboards/binepad/bn009/info.json @@ -12,7 +12,17 @@ "bootloader": "atmel-dfu", "layouts": { "LAYOUT": { - "layout": [{"label":"k00", "x":0, "y":0}, {"label":"k01", "x":1, "y":0}, {"label":"k02", "x":2, "y":0}, {"label":"k10", "x":0, "y":1}, {"label":"k11", "x":1, "y":1}, {"label":"k12", "x":2, "y":1}, {"label":"k20", "x":0, "y":2}, {"label":"k21", "x":1, "y":2}, {"label":"k22", "x":2, "y":2}] + "layout": [ + {"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]} + ] } } }
\ No newline at end of file |