diff options
Diffstat (limited to 'keyboards/adm42')
-rw-r--r-- | keyboards/adm42/adm42.c | 17 | ||||
-rw-r--r-- | keyboards/adm42/config.h | 3 | ||||
-rw-r--r-- | keyboards/adm42/info.json | 8 | ||||
-rw-r--r-- | keyboards/adm42/rev4/config.h | 5 | ||||
-rw-r--r-- | keyboards/adm42/rev4/rev4.c | 2 |
5 files changed, 9 insertions, 26 deletions
diff --git a/keyboards/adm42/adm42.c b/keyboards/adm42/adm42.c deleted file mode 100644 index 0cae6c9ab5..0000000000 --- a/keyboards/adm42/adm42.c +++ /dev/null @@ -1,17 +0,0 @@ -/* Copyright 2020-2022 Lorenzo Leonini - * SPDX-License-Identifier: GPL-2.0-only - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * 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 "adm42.h" diff --git a/keyboards/adm42/config.h b/keyboards/adm42/config.h index 03749906e8..af23da4c66 100644 --- a/keyboards/adm42/config.h +++ b/keyboards/adm42/config.h @@ -16,9 +16,6 @@ #pragma once - -#define DIODE_DIRECTION ROW2COL - #define TAP_CODE_DELAY 1 #if defined(CONSOLE_ENABLE) diff --git a/keyboards/adm42/info.json b/keyboards/adm42/info.json index 3596cdb446..03396e96c0 100644 --- a/keyboards/adm42/info.json +++ b/keyboards/adm42/info.json @@ -9,6 +9,14 @@ "pid": "0xE873", "device_version": "0.0.1" }, + "ws2812": { + "pin": "B7" + }, + "matrix_pins": { + "cols": ["C6", "B6", "B5", "B4", "D7", "D6", "F0", "F1", "F4", "F5", "F6", "F7"], + "rows": ["C7", "D5", "D3", "D2"] + }, + "diode_direction": "ROW2COL", "processor": "atmega32u4", "bootloader": "atmel-dfu", "layout_aliases": { diff --git a/keyboards/adm42/rev4/config.h b/keyboards/adm42/rev4/config.h index fa2bcb3e43..fbf2e300ef 100644 --- a/keyboards/adm42/rev4/config.h +++ b/keyboards/adm42/rev4/config.h @@ -16,13 +16,8 @@ #pragma once -#define MATRIX_COL_PINS { C6, B6, B5, B4, D7, D6, F0, F1, F4, F5, F6, F7 } -#define MATRIX_ROW_PINS { C7, D5, D3, D2 } - #define ADM42_LED E6 -#define RGB_DI_PIN B7 - #define RGB_MATRIX_LED_COUNT 42 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 170 #define RGB_DISABLE_WHEN_USB_SUSPENDED diff --git a/keyboards/adm42/rev4/rev4.c b/keyboards/adm42/rev4/rev4.c index 2e22004f96..623b5cb5a3 100644 --- a/keyboards/adm42/rev4/rev4.c +++ b/keyboards/adm42/rev4/rev4.c @@ -14,7 +14,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include QMK_KEYBOARD_H +#include "quantum.h" led_config_t g_led_config = { { |