summaryrefslogtreecommitdiffstats
path: root/keyboards/keychron/k10_pro/ansi/rgb
diff options
context:
space:
mode:
authorlokher <lokher@gmail.com>2023-10-25 15:08:46 +0800
committerGitHub <noreply@github.com>2023-10-25 15:08:46 +0800
commitd72ae351eabcf2baec05436b1e479182863bfda2 (patch)
treed18c407f6e996a309a27792ef12c604fd7a7e59c /keyboards/keychron/k10_pro/ansi/rgb
parenteca6feaf10c7077e00506c7dc5491cfde77546ce (diff)
parent1df560b679d2c8e8c6bf0e2156127d363eba0ce7 (diff)
Merge pull request #185 from KeychronMacro/keychron_k15_pro
Add keychron k15 pro
Diffstat (limited to 'keyboards/keychron/k10_pro/ansi/rgb')
-rw-r--r--keyboards/keychron/k10_pro/ansi/rgb/config.h3
-rw-r--r--keyboards/keychron/k10_pro/ansi/rgb/info.json119
-rw-r--r--keyboards/keychron/k10_pro/ansi/rgb/keymaps/default/keymap.c13
-rw-r--r--keyboards/keychron/k10_pro/ansi/rgb/keymaps/via/keymap.c14
4 files changed, 132 insertions, 17 deletions
diff --git a/keyboards/keychron/k10_pro/ansi/rgb/config.h b/keyboards/keychron/k10_pro/ansi/rgb/config.h
index 703644657a..90cfcccf96 100644
--- a/keyboards/keychron/k10_pro/ansi/rgb/config.h
+++ b/keyboards/keychron/k10_pro/ansi/rgb/config.h
@@ -19,9 +19,10 @@
#ifdef RGB_MATRIX_ENABLE
/* RGB Matrix driver configuration */
# define DRIVER_COUNT 2
-
# define DRIVER_ADDR_1 0b1110111
# define DRIVER_ADDR_2 0b1110100
+
+/* RGB Matrix configuration */
# define RGB_MATRIX_LED_COUNT 108
/* Set to infinit, which is use in USB mode by default */
diff --git a/keyboards/keychron/k10_pro/ansi/rgb/info.json b/keyboards/keychron/k10_pro/ansi/rgb/info.json
index ad52f9670c..3923a9ce58 100644
--- a/keyboards/keychron/k10_pro/ansi/rgb/info.json
+++ b/keyboards/keychron/k10_pro/ansi/rgb/info.json
@@ -30,6 +30,121 @@
"solid_reactive_multinexus": true,
"splash": true,
"solid_splash": true
- }
+ },
+ "layout": [
+ {"matrix":[0,0], "flags":1, "x":0, "y":0},
+ {"matrix":[0,1], "flags":1, "x":20, "y":0},
+ {"matrix":[0,2], "flags":1, "x":31, "y":0},
+ {"matrix":[0,3], "flags":1, "x":42, "y":0},
+ {"matrix":[0,4], "flags":1, "x":52, "y":0},
+ {"matrix":[0,5], "flags":1, "x":67, "y":0},
+ {"matrix":[0,6], "flags":1, "x":78, "y":0},
+ {"matrix":[0,7], "flags":1, "x":88, "y":0},
+ {"matrix":[0,8], "flags":1, "x":98, "y":0},
+ {"matrix":[0,9], "flags":1, "x":114, "y":0},
+ {"matrix":[0,10], "flags":1, "x":125, "y":0},
+ {"matrix":[0,11], "flags":1, "x":135, "y":0},
+ {"matrix":[0,12], "flags":1, "x":145, "y":0},
+ {"matrix":[0,14], "flags":1, "x":158, "y":0},
+ {"matrix":[0,15], "flags":1, "x":169, "y":0},
+ {"matrix":[0,16], "flags":1, "x":179, "y":0},
+ {"matrix":[0,17], "flags":4, "x":192, "y":0},
+ {"matrix":[0,18], "flags":4, "x":203, "y":0},
+ {"matrix":[0,19], "flags":4, "x":213, "y":0},
+ {"matrix":[0,20], "flags":4, "x":224, "y":0},
+
+ {"matrix":[1,0], "flags":1, "x":0, "y":15},
+ {"matrix":[1,1], "flags":8, "x":10, "y":15},
+ {"matrix":[1,2], "flags":8, "x":20, "y":15},
+ {"matrix":[1,3], "flags":8, "x":31, "y":15},
+ {"matrix":[1,4], "flags":4, "x":41, "y":15},
+ {"matrix":[1,5], "flags":4, "x":52, "y":15},
+ {"matrix":[1,6], "flags":4, "x":62, "y":15},
+ {"matrix":[1,7], "flags":4, "x":72, "y":15},
+ {"matrix":[1,8], "flags":4, "x":83, "y":15},
+ {"matrix":[1,9], "flags":4, "x":93, "y":15},
+ {"matrix":[1,10], "flags":4, "x":104, "y":15},
+ {"matrix":[1,11], "flags":4, "x":114, "y":15},
+ {"matrix":[1,12], "flags":4, "x":124, "y":15},
+ {"matrix":[1,13], "flags":1, "x":140, "y":15},
+ {"matrix":[1,14], "flags":1, "x":158, "y":15},
+ {"matrix":[1,15], "flags":1, "x":169, "y":15},
+ {"matrix":[1,16], "flags":1, "x":180, "y":15},
+ {"matrix":[1,17], "flags":8, "x":192, "y":15},
+ {"matrix":[1,18], "flags":4, "x":203, "y":15},
+ {"matrix":[1,19], "flags":4, "x":213, "y":15},
+ {"matrix":[1,20], "flags":4, "x":224, "y":15},
+
+ {"matrix":[2,0], "flags":1, "x":2, "y":28},
+ {"matrix":[2,1], "flags":4, "x":15, "y":28},
+ {"matrix":[2,2], "flags":4, "x":26, "y":28},
+ {"matrix":[2,3], "flags":4, "x":36, "y":28},
+ {"matrix":[2,4], "flags":4, "x":46, "y":28},
+ {"matrix":[2,5], "flags":4, "x":57, "y":28},
+ {"matrix":[2,6], "flags":4, "x":67, "y":28},
+ {"matrix":[2,7], "flags":4, "x":78, "y":28},
+ {"matrix":[2,8], "flags":4, "x":88, "y":28},
+ {"matrix":[2,9], "flags":4, "x":98, "y":28},
+ {"matrix":[2,10], "flags":4, "x":109, "y":28},
+ {"matrix":[2,11], "flags":4, "x":119, "y":28},
+ {"matrix":[2,12], "flags":4, "x":130, "y":28},
+ {"matrix":[2,13], "flags":1, "x":143, "y":28},
+ {"matrix":[2,14], "flags":1, "x":158, "y":28},
+ {"matrix":[2,15], "flags":1, "x":169, "y":28},
+ {"matrix":[2,16], "flags":1, "x":179, "y":28},
+ {"matrix":[2,17], "flags":4, "x":192, "y":28},
+ {"matrix":[2,18], "flags":4, "x":203, "y":28},
+ {"matrix":[2,19], "flags":4, "x":213, "y":28},
+ {"matrix":[2,20], "flags":4, "x":224, "y":28},
+
+ {"matrix":[3,0], "flags":8, "x":3, "y":39},
+ {"matrix":[3,1], "flags":4, "x":18, "y":39},
+ {"matrix":[3,2], "flags":4, "x":28, "y":39},
+ {"matrix":[3,3], "flags":4, "x":39, "y":39},
+ {"matrix":[3,4], "flags":4, "x":49, "y":39},
+ {"matrix":[3,5], "flags":4, "x":59, "y":39},
+ {"matrix":[3,6], "flags":4, "x":70, "y":39},
+ {"matrix":[3,7], "flags":4, "x":80, "y":39},
+ {"matrix":[3,8], "flags":4, "x":91, "y":39},
+ {"matrix":[3,9], "flags":4, "x":101, "y":39},
+ {"matrix":[3,10], "flags":4, "x":111, "y":39},
+ {"matrix":[3,11], "flags":4, "x":122, "y":39},
+ {"matrix":[3,13], "flags":4, "x":139, "y":39},
+ {"matrix":[3,17], "flags":4, "x":192, "y":39},
+ {"matrix":[3,18], "flags":4, "x":203, "y":39},
+ {"matrix":[3,19], "flags":4, "x":213, "y":39},
+
+ {"matrix":[4,0], "flags":1, "x":6, "y":52},
+ {"matrix":[4,2], "flags":4, "x":23, "y":52},
+ {"matrix":[4,3], "flags":4, "x":33, "y":52},
+ {"matrix":[4,4], "flags":4, "x":44, "y":52},
+ {"matrix":[4,5], "flags":4, "x":54, "y":52},
+ {"matrix":[4,6], "flags":4, "x":65, "y":52},
+ {"matrix":[4,7], "flags":4, "x":75, "y":52},
+ {"matrix":[4,8], "flags":4, "x":85, "y":52},
+ {"matrix":[4,9], "flags":4, "x":96, "y":52},
+ {"matrix":[4,10], "flags":4, "x":106, "y":52},
+ {"matrix":[4,11], "flags":4, "x":117, "y":52},
+ {"matrix":[4,13], "flags":1, "x":136, "y":52},
+ {"matrix":[4,15], "flags":1, "x":169, "y":52},
+ {"matrix":[4,17], "flags":4, "x":192, "y":52},
+ {"matrix":[4,18], "flags":4, "x":203, "y":52},
+ {"matrix":[4,19], "flags":4, "x":213, "y":52},
+ {"matrix":[4,20], "flags":4, "x":224, "y":58},
+
+ {"matrix":[5,0], "flags":1, "x":1, "y":64},
+ {"matrix":[5,1], "flags":1, "x":14, "y":64},
+ {"matrix":[5,2], "flags":1, "x":27, "y":64},
+ {"matrix":[5,6], "flags":4, "x":66, "y":64},
+ {"matrix":[5,10], "flags":1, "x":105, "y":64},
+ {"matrix":[5,11], "flags":1, "x":118, "y":64},
+ {"matrix":[5,12], "flags":1, "x":131, "y":64},
+ {"matrix":[5,13], "flags":1, "x":144, "y":64},
+ {"matrix":[5,14], "flags":1, "x":158, "y":64},
+ {"matrix":[5,15], "flags":1, "x":169, "y":64},
+ {"matrix":[5,16], "flags":1, "x":179, "y":64},
+ {"matrix":[5,17], "flags":4, "x":197, "y":64},
+ {"matrix":[5,19], "flags":4, "x":213, "y":64}
+ ]
}
-}
+} \ No newline at end of file
diff --git a/keyboards/keychron/k10_pro/ansi/rgb/keymaps/default/keymap.c b/keyboards/keychron/k10_pro/ansi/rgb/keymaps/default/keymap.c
index d54f54594b..170a7690a3 100644
--- a/keyboards/keychron/k10_pro/ansi/rgb/keymaps/default/keymap.c
+++ b/keyboards/keychron/k10_pro/ansi/rgb/keymaps/default/keymap.c
@@ -16,14 +16,14 @@
#include QMK_KEYBOARD_H
-// clang-format off
-enum layers{
- MAC_BASE,
- MAC_FN,
- WIN_BASE,
- WIN_FN
+enum layers {
+ MAC_BASE,
+ MAC_FN,
+ WIN_BASE,
+ WIN_FN,
};
+// clang-format off
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[MAC_BASE] = LAYOUT_ansi_108(
KC_ESC, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_SNAP, KC_SIRI, RGB_MOD, KC_F13, KC_F14, KC_F15, KC_F16,
@@ -54,4 +54,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______, _______, BAT_LVL, NK_TOGG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ )
};
-
diff --git a/keyboards/keychron/k10_pro/ansi/rgb/keymaps/via/keymap.c b/keyboards/keychron/k10_pro/ansi/rgb/keymaps/via/keymap.c
index d54f54594b..6eddf66e6a 100644
--- a/keyboards/keychron/k10_pro/ansi/rgb/keymaps/via/keymap.c
+++ b/keyboards/keychron/k10_pro/ansi/rgb/keymaps/via/keymap.c
@@ -16,17 +16,17 @@
#include QMK_KEYBOARD_H
-// clang-format off
-enum layers{
- MAC_BASE,
- MAC_FN,
- WIN_BASE,
- WIN_FN
+enum layers {
+ MAC_BASE,
+ MAC_FN,
+ WIN_BASE,
+ WIN_FN,
};
+// clang-format off
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[MAC_BASE] = LAYOUT_ansi_108(
- KC_ESC, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_SNAP, KC_SIRI, RGB_MOD, KC_F13, KC_F14, KC_F15, KC_F16,
+ KC_ESC, KC_BRID, KC_BRIU, KC_MICT, KC_LAPA, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_SNAP, KC_SIRI, RGB_MOD, KC_F13, KC_F14, KC_F15, KC_F16,
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6,