diff options
author | Ryan <fauxpark@gmail.com> | 2023-04-15 21:08:15 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-15 21:08:15 +1000 |
commit | 172a40686b84af7f887350a20c526855c7f7649c (patch) | |
tree | 435d6c9a8b06edff988deaa00964629d81d55d64 /keyboards/keebzdotnet | |
parent | a84528f85392ccab60fd7130fecb83972539367f (diff) |
Move single `LAYOUT_all`s to data driven (#20430)
Diffstat (limited to 'keyboards/keebzdotnet')
-rw-r--r-- | keyboards/keebzdotnet/fme/fme.h | 32 | ||||
-rw-r--r-- | keyboards/keebzdotnet/fme/info.json | 27 |
2 files changed, 14 insertions, 45 deletions
diff --git a/keyboards/keebzdotnet/fme/fme.h b/keyboards/keebzdotnet/fme/fme.h deleted file mode 100644 index ff8da5d409..0000000000 --- a/keyboards/keebzdotnet/fme/fme.h +++ /dev/null @@ -1,32 +0,0 @@ -/* -Copyright 2021 keebnewb - -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 ___ KC_NO - -#define LAYOUT_all( \ - k00, k13, k14, k12, k10, \ - k11, k04, k02, k03, \ - k22, k32, k21, k01 \ -){ \ - { k00, k01, k02, k03, k04 }, \ - { k10, k11, k12, k13, k14 }, \ - { ___, k21, k22, ___, ___ }, \ - { ___, ___, k32, ___, ___ } \ -} diff --git a/keyboards/keebzdotnet/fme/info.json b/keyboards/keebzdotnet/fme/info.json index 42f01c438c..72466f53d1 100644 --- a/keyboards/keebzdotnet/fme/info.json +++ b/keyboards/keebzdotnet/fme/info.json @@ -21,21 +21,22 @@ "layouts": { "LAYOUT_all": { "layout": [ - {"label":"k00", "x":0, "y":0}, - {"label":"k13", "x":1, "y":0}, - {"label":"k14", "x":2, "y":0}, - {"label":"k12", "x":3, "y":0}, - {"label":"k10", "x":4, "y":0}, + {"matrix": [0, 0], "x": 0, "y": 0}, + {"matrix": [1, 3], "x": 1, "y": 0}, + {"matrix": [1, 4], "x": 2, "y": 0}, + {"matrix": [1, 2], "x": 3, "y": 0}, + {"matrix": [1, 0], "x": 4, "y": 0}, - {"label":"k11", "x":0.25, "y":1}, - {"label":"k04", "x":1.25, "y":1}, - {"label":"k02", "x":2.25, "y":1}, - {"label":"k03", "x":3.25, "y":1, "w":1.75}, + {"matrix": [1, 1], "x": 0.25, "y": 1}, + {"matrix": [0, 4], "x": 1.25, "y": 1}, + {"matrix": [0, 2], "x": 2.25, "y": 1}, + {"matrix": [0, 3], "x": 3.25, "y": 1, "w": 1.75}, - {"label":"k22", "x":0.25, "y":2, "w":2.75}, - {"label":"k32", "x":3, "y":3}, - {"label":"k21", "x":3, "y":2, "w":2}, - {"label":"k01", "x":4, "y":3} + {"matrix": [2, 2], "x": 0.25, "y": 2, "w": 2.75}, + {"matrix": [3, 2], "x": 3, "y": 3}, + + {"matrix": [2, 1], "x": 3, "y": 2, "w": 2}, + {"matrix": [0, 1], "x": 4, "y": 3} ] } } |