From 364c06d939134184838579d4e73880f8c2f83419 Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 5 Apr 2023 15:46:59 +1000 Subject: Move small macropad-ish layouts to data driven (#20341) --- keyboards/clawsome/luggage_rack/info.json | 30 +++++++++++--------- keyboards/clawsome/luggage_rack/luggage_rack.h | 38 -------------------------- 2 files changed, 17 insertions(+), 51 deletions(-) delete mode 100644 keyboards/clawsome/luggage_rack/luggage_rack.h (limited to 'keyboards/clawsome/luggage_rack') diff --git a/keyboards/clawsome/luggage_rack/info.json b/keyboards/clawsome/luggage_rack/info.json index 3c813bd36a..5996c9d8f4 100644 --- a/keyboards/clawsome/luggage_rack/info.json +++ b/keyboards/clawsome/luggage_rack/info.json @@ -18,19 +18,23 @@ "layouts": { "LAYOUT": { "layout": [ - {"label":"K00 (D3,D4)", "x":0, "y":0}, - {"label":"K11 (F4,D0)", "x":1, "y":0}, - {"label":"K02 (D3,D1)", "x":2, "y":0}, - {"label":"K20 (B0,D4)", "x":0, "y":1.5}, - {"label":"K31 (B2,D0)", "x":1, "y":1.5}, - {"label":"K22 (B0,D1)", "x":2, "y":1.5}, - {"label":"K40 (F7,D4)", "x":0, "y":2.5}, - {"label":"K51 (B6,D0)", "x":1, "y":2.5}, - {"label":"K42 (F7,D1)", "x":2, "y":2.5}, - {"label":"K61 (B1,D0)", "x":1, "y":4.5}, - {"label":"K70 (F5,D4)", "x":0, "y":5.5}, - {"label":"K81 (F6,D0)", "x":1, "y":5.5}, - {"label":"K72 (F5,D1)", "x":2, "y":5.5} + {"matrix": [0, 0], "x": 0, "y": 0}, + {"matrix": [1, 1], "x": 1, "y": 0}, + {"matrix": [0, 2], "x": 2, "y": 0}, + + {"matrix": [2, 0], "x": 0, "y": 1.5}, + {"matrix": [3, 1], "x": 1, "y": 1.5}, + {"matrix": [2, 2], "x": 2, "y": 1.5}, + + {"matrix": [4, 0], "x": 0, "y": 2.5}, + {"matrix": [5, 1], "x": 1, "y": 2.5}, + {"matrix": [4, 2], "x": 2, "y": 2.5}, + + {"matrix": [6, 1], "x": 1, "y": 4.5}, + + {"matrix": [7, 0], "x": 0, "y": 5.5}, + {"matrix": [8, 1], "x": 1, "y": 5.5}, + {"matrix": [7, 2], "x": 2, "y": 5.5} ] } } diff --git a/keyboards/clawsome/luggage_rack/luggage_rack.h b/keyboards/clawsome/luggage_rack/luggage_rack.h deleted file mode 100644 index 20c4947bd2..0000000000 --- a/keyboards/clawsome/luggage_rack/luggage_rack.h +++ /dev/null @@ -1,38 +0,0 @@ -/* Copyright 2021 AAClawson (AlisGraveNil) - * - * 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 . - */ - -#pragma once - -#include "quantum.h" - -#define LAYOUT( \ - K00, K11, K02, \ - K20, K31, K22, \ - K40, K51, K42, \ - \ - K61, \ - K70, K81, K72 \ -) { \ - { K00, KC_NO, K02 }, \ - { KC_NO, K11, KC_NO }, \ - { K20, KC_NO, K22 }, \ - { KC_NO, K31, KC_NO }, \ - { K40, KC_NO, K42 }, \ - { KC_NO, K51, KC_NO }, \ - { KC_NO, K61, KC_NO }, \ - { K70, KC_NO, K72 }, \ - { KC_NO, K81, KC_NO }, \ -} -- cgit v1.2.3