summaryrefslogtreecommitdiff
path: root/keyboards/xiudi/xd004
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/xiudi/xd004')
-rw-r--r--keyboards/xiudi/xd004/info.json20
-rw-r--r--keyboards/xiudi/xd004/keymaps/default/keymap.c2
-rw-r--r--keyboards/xiudi/xd004/keymaps/narze/keymap.c2
-rw-r--r--keyboards/xiudi/xd004/keymaps/system_and_media/keymap.c6
-rw-r--r--keyboards/xiudi/xd004/v1/config.h1
5 files changed, 18 insertions, 13 deletions
diff --git a/keyboards/xiudi/xd004/info.json b/keyboards/xiudi/xd004/info.json
index a404780eea..597c5dc818 100644
--- a/keyboards/xiudi/xd004/info.json
+++ b/keyboards/xiudi/xd004/info.json
@@ -1,7 +1,7 @@
{
- "keyboard_name": "XD004",
+ "keyboard_name": "XD004",
"manufacturer": "XIUDI",
- "maintainer": "qmk",
+ "maintainer": "qmk",
"usb": {
"vid": "0x7844",
"pid": "0x0404",
@@ -11,6 +11,9 @@
"pin": "D5",
"levels": 6
},
+ "ws2812": {
+ "pin": "C6"
+ },
"processor": "atmega16u2",
"bootloader": "atmel-dfu",
"matrix_pins": {
@@ -18,13 +21,16 @@
["D3", "D0", "C4", "B4"]
]
},
+ "layout_aliases": {
+ "LAYOUT_all": "LAYOUT_ortho_1x4"
+ },
"layouts": {
- "LAYOUT_all": {
+ "LAYOUT_ortho_1x4": {
"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]}
+ {"label": "L", "matrix": [0, 0], "x": 0, "y": 0},
+ {"label": "O", "matrix": [0, 1], "x": 1, "y": 0},
+ {"label": "V", "matrix": [0, 2], "x": 2, "y": 0},
+ {"label": "E", "matrix": [0, 3], "x": 3, "y": 0}
]
}
}
diff --git a/keyboards/xiudi/xd004/keymaps/default/keymap.c b/keyboards/xiudi/xd004/keymaps/default/keymap.c
index f54f422613..2034bc15ee 100644
--- a/keyboards/xiudi/xd004/keymaps/default/keymap.c
+++ b/keyboards/xiudi/xd004/keymaps/default/keymap.c
@@ -3,6 +3,6 @@
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// 0: Base Layer
- LAYOUT_all(KC_L, KC_O, KC_V, KC_E),
+ LAYOUT_ortho_1x4(KC_L, KC_O, KC_V, KC_E),
};
diff --git a/keyboards/xiudi/xd004/keymaps/narze/keymap.c b/keyboards/xiudi/xd004/keymaps/narze/keymap.c
index 30ea48d683..9aa47081b4 100644
--- a/keyboards/xiudi/xd004/keymaps/narze/keymap.c
+++ b/keyboards/xiudi/xd004/keymaps/narze/keymap.c
@@ -19,6 +19,6 @@
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// 0: Base Layer
- LAYOUT_all(HYPR(KC_F2), HYPR(KC_F1), LCTL(KC_B), LCTL(KC_X)),
+ LAYOUT_ortho_1x4(HYPR(KC_F2), HYPR(KC_F1), LCTL(KC_B), LCTL(KC_X)),
};
diff --git a/keyboards/xiudi/xd004/keymaps/system_and_media/keymap.c b/keyboards/xiudi/xd004/keymaps/system_and_media/keymap.c
index 60f0e15bbe..f87a04e1e4 100644
--- a/keyboards/xiudi/xd004/keymaps/system_and_media/keymap.c
+++ b/keyboards/xiudi/xd004/keymaps/system_and_media/keymap.c
@@ -25,13 +25,13 @@ enum custom_keycodes { // Make sure have the awesome keycode ready
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// 0: Base Layer
- [_BASE] = LAYOUT_all(LT(_SYSTEM, KC_F5), C(G(KC_LEFT)), C(G(KC_RIGHT)), LT(_VOLUME, KC_F7)),
+ [_BASE] = LAYOUT_ortho_1x4(LT(_SYSTEM, KC_F5), C(G(KC_LEFT)), C(G(KC_RIGHT)), LT(_VOLUME, KC_F7)),
// 1: System actions
- [_SYSTEM] = LAYOUT_all(_______, SUPER_ALT_F4, G(KC_D), G(KC_L)),
+ [_SYSTEM] = LAYOUT_ortho_1x4(_______, SUPER_ALT_F4, G(KC_D), G(KC_L)),
// 2: Volume actions
- [_VOLUME] = LAYOUT_all(KC_MEDIA_NEXT_TRACK, KC_AUDIO_VOL_DOWN, KC_AUDIO_VOL_UP, _______),
+ [_VOLUME] = LAYOUT_ortho_1x4(KC_MEDIA_NEXT_TRACK, KC_AUDIO_VOL_DOWN, KC_AUDIO_VOL_UP, _______),
};
diff --git a/keyboards/xiudi/xd004/v1/config.h b/keyboards/xiudi/xd004/v1/config.h
index 1e747adeaf..823ba86358 100644
--- a/keyboards/xiudi/xd004/v1/config.h
+++ b/keyboards/xiudi/xd004/v1/config.h
@@ -28,7 +28,6 @@ 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
further optimizations can be done on that side.
*/
-#define RGB_DI_PIN C6
#define RGBLIGHT_EFFECT_STATIC_GRADIENT
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
#define RGBLED_NUM 2