From e837a32b2b4d6eb96ffacad0022699d67c0f8f1e Mon Sep 17 00:00:00 2001 From: Ryan Date: Sun, 19 Feb 2023 18:55:12 +1100 Subject: Move layouts for direct_pins boards to data driven (#19872) --- keyboards/crypt_macro/crypt_macro.c | 16 ---------------- keyboards/crypt_macro/crypt_macro.h | 28 ---------------------------- keyboards/crypt_macro/info.json | 7 ++++++- 3 files changed, 6 insertions(+), 45 deletions(-) delete mode 100644 keyboards/crypt_macro/crypt_macro.c delete mode 100644 keyboards/crypt_macro/crypt_macro.h (limited to 'keyboards/crypt_macro') diff --git a/keyboards/crypt_macro/crypt_macro.c b/keyboards/crypt_macro/crypt_macro.c deleted file mode 100644 index 32f8d0bf28..0000000000 --- a/keyboards/crypt_macro/crypt_macro.c +++ /dev/null @@ -1,16 +0,0 @@ -/* Copyright 2022 Yiancar-Designs - * - * 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 . - */ -#include "crypt_macro.h" diff --git a/keyboards/crypt_macro/crypt_macro.h b/keyboards/crypt_macro/crypt_macro.h deleted file mode 100644 index d128db4dff..0000000000 --- a/keyboards/crypt_macro/crypt_macro.h +++ /dev/null @@ -1,28 +0,0 @@ -/* Copyright 2022 Yiancar-Designs - * - * 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 - -#define XXX KC_NO - -#include "quantum.h" - -#define LAYOUT( \ - K00, K01, K02, \ - K11 \ -) { \ - { K00, K01, K02 }, \ - { XXX, K11, XXX } \ -} diff --git a/keyboards/crypt_macro/info.json b/keyboards/crypt_macro/info.json index 910777b90c..c26bf041fa 100644 --- a/keyboards/crypt_macro/info.json +++ b/keyboards/crypt_macro/info.json @@ -18,7 +18,12 @@ }, "layouts": { "LAYOUT": { - "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":0.5, "y":1, "w":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.5, "y":1, "w":2, "matrix": [1, 1]} + ] } } } -- cgit v1.2.3