diff options
Diffstat (limited to 'keyboards/xiudi/xd004')
-rw-r--r-- | keyboards/xiudi/xd004/info.json | 18 | ||||
-rw-r--r-- | keyboards/xiudi/xd004/v1/config.h | 27 | ||||
-rw-r--r-- | keyboards/xiudi/xd004/v1/rules.mk | 8 | ||||
-rw-r--r-- | keyboards/xiudi/xd004/xd004.c | 1 | ||||
-rw-r--r-- | keyboards/xiudi/xd004/xd004.h | 15 |
5 files changed, 17 insertions, 52 deletions
diff --git a/keyboards/xiudi/xd004/info.json b/keyboards/xiudi/xd004/info.json index e9876f8c64..a404780eea 100644 --- a/keyboards/xiudi/xd004/info.json +++ b/keyboards/xiudi/xd004/info.json @@ -7,9 +7,25 @@ "pid": "0x0404", "device_version": "0.0.1" }, + "backlight": { + "pin": "D5", + "levels": 6 + }, + "processor": "atmega16u2", + "bootloader": "atmel-dfu", + "matrix_pins": { + "direct": [ + ["D3", "D0", "C4", "B4"] + ] + }, "layouts": { "LAYOUT_all": { - "layout": [{"label":"L", "x":0, "y":0}, {"label":"O", "x":1, "y":0}, {"label":"V", "x":2, "y":0}, {"label":"E", "x":3, "y":0}] + "layout": [ + {"x":0, "y":0, "matrix": [0, 0]}, + {"x":1, "y":0, "matrix": [0, 1]}, + {"x":2, "y":0, "matrix": [0, 2]}, + {"x":3, "y":0, "matrix": [0, 3]} + ] } } } diff --git a/keyboards/xiudi/xd004/v1/config.h b/keyboards/xiudi/xd004/v1/config.h index b2e36f4704..1e747adeaf 100644 --- a/keyboards/xiudi/xd004/v1/config.h +++ b/keyboards/xiudi/xd004/v1/config.h @@ -23,33 +23,6 @@ where some things are disabled to save space as well. #pragma once -#include "config_common.h" - -/* key matrix size */ -#define MATRIX_ROWS 1 -#define MATRIX_COLS 4 - -/* - * Keyboard Matrix Assignments - * - * On this board we have direct connection: no diodes. - */ -#define DIRECT_PINS \ - { \ - { D3, D0, C4, B4 } \ - } - -/* Backlight Setup */ -// Looks like each backlight LED is connected to a single output, D5 is the one furtherst away from USB port -#define BACKLIGHT_PIN D5 -#define BACKLIGHT_LEVELS 6 - -/* COL2ROW or ROW2COL */ -#define DIODE_DIRECTION COL2ROW - -/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ -#define DEBOUNCE 5 - /* RGB Underglow This will not be used, as RGBLIGHT_ENABLE is set to 'no' in rules.mk We do not have enough space in the flash for this at the moment, maybe diff --git a/keyboards/xiudi/xd004/v1/rules.mk b/keyboards/xiudi/xd004/v1/rules.mk index 2a885e1441..f5f2138436 100644 --- a/keyboards/xiudi/xd004/v1/rules.mk +++ b/keyboards/xiudi/xd004/v1/rules.mk @@ -1,9 +1,3 @@ -# MCU name -MCU = atmega16u2 - -# Bootloader selection -BOOTLOADER = atmel-dfu - # Build Options # change yes to no to disable # @@ -19,5 +13,3 @@ RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. SPACE_CADET_ENABLE = no # Saves about 5% of space: LTO_ENABLE = yes - -#LAYOUTS = ortho_1x4 diff --git a/keyboards/xiudi/xd004/xd004.c b/keyboards/xiudi/xd004/xd004.c deleted file mode 100644 index 7f0b4e52c5..0000000000 --- a/keyboards/xiudi/xd004/xd004.c +++ /dev/null @@ -1 +0,0 @@ -#include "xd004.h" diff --git a/keyboards/xiudi/xd004/xd004.h b/keyboards/xiudi/xd004/xd004.h deleted file mode 100644 index a53ad537f7..0000000000 --- a/keyboards/xiudi/xd004/xd004.h +++ /dev/null @@ -1,15 +0,0 @@ -#pragma once - -#include "quantum.h" -//#include "led.h" - -/* XD60 Keymap Definition Macro */ -/* - +--------------------------------+ - | K0 K1 K2 K3 [----- USB - +--------------------------------+ -*/ -#define LAYOUT_all(K00, K01, K02, K03) \ - { \ - { K00, K01, K02, K03 } \ - } |