summaryrefslogtreecommitdiff
path: root/keyboards/clawsome/luggage_rack
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-04-05 15:46:59 +1000
committerGitHub <noreply@github.com>2023-04-05 15:46:59 +1000
commit364c06d939134184838579d4e73880f8c2f83419 (patch)
treeb54be2d8a9a7ca5913774390bb0772e927d6523a /keyboards/clawsome/luggage_rack
parent06c5c028046adc0a5501f6ac51953640e2015020 (diff)
Move small macropad-ish layouts to data driven (#20341)
Diffstat (limited to 'keyboards/clawsome/luggage_rack')
-rw-r--r--keyboards/clawsome/luggage_rack/info.json30
-rw-r--r--keyboards/clawsome/luggage_rack/luggage_rack.h38
2 files changed, 17 insertions, 51 deletions
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 <http://www.gnu.org/licenses/>.
- */
-
-#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 }, \
-}