summaryrefslogtreecommitdiff
path: root/keyboards/alf/x2
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/alf/x2')
-rw-r--r--keyboards/alf/x2/config.h17
-rw-r--r--keyboards/alf/x2/info.json9
-rw-r--r--keyboards/alf/x2/rules.mk6
3 files changed, 9 insertions, 23 deletions
diff --git a/keyboards/alf/x2/config.h b/keyboards/alf/x2/config.h
index dc1ebcb539..374873d5d5 100644
--- a/keyboards/alf/x2/config.h
+++ b/keyboards/alf/x2/config.h
@@ -16,11 +16,6 @@
#pragma once
-#include "config_common.h"
-
-/* key matrix size */
-#define MATRIX_ROWS 5
-#define MATRIX_COLS 15
/* key matrix pins */
#define MATRIX_ROW_PINS \
@@ -31,18 +26,6 @@
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
-#define LED_CAPS_LOCK_PIN B2
-#define LED_PIN_ON_STATE 0
-
-/* number of backlight levels */
-#define BACKLIGHT_PIN B6
-#ifdef BACKLIGHT_PIN
-# define BACKLIGHT_LEVELS 3
-#endif
-
-/* Set 0 if debouncing isn't needed */
-#define DEBOUNCE 5
-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
diff --git a/keyboards/alf/x2/info.json b/keyboards/alf/x2/info.json
index 7bb69d15e6..5e0b3087a8 100644
--- a/keyboards/alf/x2/info.json
+++ b/keyboards/alf/x2/info.json
@@ -8,6 +8,15 @@
"pid": "0x6060",
"device_version": "0.0.1"
},
+ "indicators": {
+ "caps_lock": "B2",
+ "on_state": 0
+ },
+ "backlight": {
+ "pin": "B6"
+ },
+ "processor": "atmega32u4",
+ "bootloader": "atmel-dfu",
"layouts": {
"LAYOUT_all": {
"layout": [
diff --git a/keyboards/alf/x2/rules.mk b/keyboards/alf/x2/rules.mk
index b27013f863..3d5cb57ad5 100644
--- a/keyboards/alf/x2/rules.mk
+++ b/keyboards/alf/x2/rules.mk
@@ -1,9 +1,3 @@
-# MCU name
-MCU = atmega32u4
-
-# Bootloader selection
-BOOTLOADER = atmel-dfu
-
# Build Options
# change yes to no to disable
#