diff options
author | lokher <lokher@gmail.com> | 2023-04-26 16:32:15 +0800 |
---|---|---|
committer | lokher <lokher@gmail.com> | 2023-04-26 16:32:15 +0800 |
commit | e4f4ceaf3f2e3d25fb282273a81f9b58790fc427 (patch) | |
tree | c0a257eab0ffe5238fdf2c04882e8ee1fe8fc46e /keyboards/keychron/k13_pro | |
parent | 103badc87cb50db1ff3851c84331e86ba78fb681 (diff) |
merge upstream 713427c
Diffstat (limited to 'keyboards/keychron/k13_pro')
22 files changed, 16 insertions, 19 deletions
diff --git a/keyboards/keychron/k13_pro/ansi/rgb/config.h b/keyboards/keychron/k13_pro/ansi/rgb/config.h index eca9f2550a..eca9f2550a 100755..100644 --- a/keyboards/keychron/k13_pro/ansi/rgb/config.h +++ b/keyboards/keychron/k13_pro/ansi/rgb/config.h diff --git a/keyboards/keychron/k13_pro/ansi/rgb/info.json b/keyboards/keychron/k13_pro/ansi/rgb/info.json index 549fc3b464..549fc3b464 100755..100644 --- a/keyboards/keychron/k13_pro/ansi/rgb/info.json +++ b/keyboards/keychron/k13_pro/ansi/rgb/info.json diff --git a/keyboards/keychron/k13_pro/ansi/rgb/keymaps/default/keymap.c b/keyboards/keychron/k13_pro/ansi/rgb/keymaps/default/keymap.c index 8b0829bc28..677cbe6c07 100755..100644 --- a/keyboards/keychron/k13_pro/ansi/rgb/keymaps/default/keymap.c +++ b/keyboards/keychron/k13_pro/ansi/rgb/keymaps/default/keymap.c @@ -26,7 +26,7 @@ enum layers{ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [MAC_BASE] = LAYOUT_ansi_90( - KC_ESC, KC_BRID, KC_BRIU, KC_MCTL, KC_LNPD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_P7, KC_P8, KC_P9, + 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_P7, KC_P8, KC_P9, 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_P4, KC_P5, KC_P6, 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_P1, KC_P2, KC_P3, 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_DEL, KC_P0, KC_PDOT, diff --git a/keyboards/keychron/k13_pro/ansi/rgb/keymaps/via/keymap.c b/keyboards/keychron/k13_pro/ansi/rgb/keymaps/via/keymap.c index 8b0829bc28..677cbe6c07 100755..100644 --- a/keyboards/keychron/k13_pro/ansi/rgb/keymaps/via/keymap.c +++ b/keyboards/keychron/k13_pro/ansi/rgb/keymaps/via/keymap.c @@ -26,7 +26,7 @@ enum layers{ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [MAC_BASE] = LAYOUT_ansi_90( - KC_ESC, KC_BRID, KC_BRIU, KC_MCTL, KC_LNPD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_P7, KC_P8, KC_P9, + 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_P7, KC_P8, KC_P9, 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_P4, KC_P5, KC_P6, 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_P1, KC_P2, KC_P3, 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_DEL, KC_P0, KC_PDOT, diff --git a/keyboards/keychron/k13_pro/ansi/rgb/keymaps/via/rules.mk b/keyboards/keychron/k13_pro/ansi/rgb/keymaps/via/rules.mk index 45fa68954c..45fa68954c 100755..100644 --- a/keyboards/keychron/k13_pro/ansi/rgb/keymaps/via/rules.mk +++ b/keyboards/keychron/k13_pro/ansi/rgb/keymaps/via/rules.mk diff --git a/keyboards/keychron/k13_pro/ansi/rgb/rgb.c b/keyboards/keychron/k13_pro/ansi/rgb/rgb.c index 05e3707aa6..05e3707aa6 100755..100644 --- a/keyboards/keychron/k13_pro/ansi/rgb/rgb.c +++ b/keyboards/keychron/k13_pro/ansi/rgb/rgb.c diff --git a/keyboards/keychron/k13_pro/ansi/rgb/rules.mk b/keyboards/keychron/k13_pro/ansi/rgb/rules.mk index 7af34ccd60..7af34ccd60 100755..100644 --- a/keyboards/keychron/k13_pro/ansi/rgb/rules.mk +++ b/keyboards/keychron/k13_pro/ansi/rgb/rules.mk diff --git a/keyboards/keychron/k13_pro/ansi/white/config.h b/keyboards/keychron/k13_pro/ansi/white/config.h index e746986802..e746986802 100755..100644 --- a/keyboards/keychron/k13_pro/ansi/white/config.h +++ b/keyboards/keychron/k13_pro/ansi/white/config.h diff --git a/keyboards/keychron/k13_pro/ansi/white/info.json b/keyboards/keychron/k13_pro/ansi/white/info.json index f40fa245cd..f40fa245cd 100755..100644 --- a/keyboards/keychron/k13_pro/ansi/white/info.json +++ b/keyboards/keychron/k13_pro/ansi/white/info.json diff --git a/keyboards/keychron/k13_pro/ansi/white/keymaps/default/keymap.c b/keyboards/keychron/k13_pro/ansi/white/keymaps/default/keymap.c index 67e2b3673c..991b47d303 100755..100644 --- a/keyboards/keychron/k13_pro/ansi/white/keymaps/default/keymap.c +++ b/keyboards/keychron/k13_pro/ansi/white/keymaps/default/keymap.c @@ -26,7 +26,7 @@ enum layers{ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [MAC_BASE] = LAYOUT_ansi_90( - KC_ESC, KC_BRID, KC_BRIU, KC_MCTL, KC_LNPD, BL_DOWN, BL_UP, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_P7, KC_P8, KC_P9, + KC_ESC, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, BL_DOWN, BL_UP, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_P7, KC_P8, KC_P9, 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_P4, KC_P5, KC_P6, 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_P1, KC_P2, KC_P3, 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_DEL, KC_P0, KC_PDOT, diff --git a/keyboards/keychron/k13_pro/ansi/white/keymaps/via/keymap.c b/keyboards/keychron/k13_pro/ansi/white/keymaps/via/keymap.c index 67e2b3673c..991b47d303 100755..100644 --- a/keyboards/keychron/k13_pro/ansi/white/keymaps/via/keymap.c +++ b/keyboards/keychron/k13_pro/ansi/white/keymaps/via/keymap.c @@ -26,7 +26,7 @@ enum layers{ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [MAC_BASE] = LAYOUT_ansi_90( - KC_ESC, KC_BRID, KC_BRIU, KC_MCTL, KC_LNPD, BL_DOWN, BL_UP, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_P7, KC_P8, KC_P9, + KC_ESC, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, BL_DOWN, BL_UP, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_P7, KC_P8, KC_P9, 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_P4, KC_P5, KC_P6, 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_P1, KC_P2, KC_P3, 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_DEL, KC_P0, KC_PDOT, diff --git a/keyboards/keychron/k13_pro/ansi/white/keymaps/via/rules.mk b/keyboards/keychron/k13_pro/ansi/white/keymaps/via/rules.mk index 45fa68954c..45fa68954c 100755..100644 --- a/keyboards/keychron/k13_pro/ansi/white/keymaps/via/rules.mk +++ b/keyboards/keychron/k13_pro/ansi/white/keymaps/via/rules.mk diff --git a/keyboards/keychron/k13_pro/ansi/white/rules.mk b/keyboards/keychron/k13_pro/ansi/white/rules.mk index 290c1bb47a..290c1bb47a 100755..100644 --- a/keyboards/keychron/k13_pro/ansi/white/rules.mk +++ b/keyboards/keychron/k13_pro/ansi/white/rules.mk diff --git a/keyboards/keychron/k13_pro/ansi/white/white.c b/keyboards/keychron/k13_pro/ansi/white/white.c index 22d108609e..22d108609e 100755..100644 --- a/keyboards/keychron/k13_pro/ansi/white/white.c +++ b/keyboards/keychron/k13_pro/ansi/white/white.c diff --git a/keyboards/keychron/k13_pro/config.h b/keyboards/keychron/k13_pro/config.h index 1b8ea0404c..1b8ea0404c 100755..100644 --- a/keyboards/keychron/k13_pro/config.h +++ b/keyboards/keychron/k13_pro/config.h diff --git a/keyboards/keychron/k13_pro/halconf.h b/keyboards/keychron/k13_pro/halconf.h index fafd0c1fed..306f917783 100755..100644 --- a/keyboards/keychron/k13_pro/halconf.h +++ b/keyboards/keychron/k13_pro/halconf.h @@ -16,6 +16,8 @@ #pragma once +#define _CHIBIOS_HAL_CONF_VER_8_0_ + #define HAL_USE_I2C TRUE #ifdef KC_BLUETOOTH_ENABLE diff --git a/keyboards/keychron/k13_pro/k13_pro.c b/keyboards/keychron/k13_pro/k13_pro.c index af0ebc442e..4830f3c69d 100755..100644 --- a/keyboards/keychron/k13_pro/k13_pro.c +++ b/keyboards/keychron/k13_pro/k13_pro.c @@ -91,14 +91,6 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { unregister_code(mac_keycode[keycode - KC_LOPTN]); } return false; // Skip all further processing of this key) - case KC_MCTL: - /* Mission Control */ - host_consumer_send(record->event.pressed ? 0x29F : 0); - return false; // Skip all further processing of this key - case KC_LNPD: - /* Lanuchpad */ - host_consumer_send(record->event.pressed ? 0x2A0 : 0); - return false; // Skip all further processing of this key case KC_TASK: case KC_FILE: case KC_SNAP: diff --git a/keyboards/keychron/k13_pro/k13_pro.h b/keyboards/keychron/k13_pro/k13_pro.h index c7e29d5afb..cd0954d579 100755..100644 --- a/keyboards/keychron/k13_pro/k13_pro.h +++ b/keyboards/keychron/k13_pro/k13_pro.h @@ -18,15 +18,15 @@ #include "quantum.h" #ifdef VIA_ENABLE -#include "via.h" +# include "via.h" #endif #define ___ KC_NO #ifdef VIA_ENABLE -#define USER_START USER00 +# define USER_START QK_KB_0 #else -#define USER_START SAFE_RANGE +# define USER_START SAFE_RANGE #endif // clang-format off @@ -35,8 +35,6 @@ enum { KC_ROPTN, KC_LCMMD, KC_RCMMD, - KC_MCTL, - KC_LNPD, KC_TASK, KC_FILE, KC_SNAP, @@ -46,7 +44,12 @@ enum { BT_HST1, BT_HST2, BT_HST3, -#endif BAT_LVL, - NEW_SAFE_RANGE, +#else + BT_HST1 = KC_TRNS, + BT_HST2 = KC_TRNS, + BT_HST3 = KC_TRNS, + BAT_LVL = KC_TRNS, +#endif + NEW_SAFE_RANGE }; diff --git a/keyboards/keychron/k13_pro/matrix.c b/keyboards/keychron/k13_pro/matrix.c index 22d2ac1e11..22d2ac1e11 100755..100644 --- a/keyboards/keychron/k13_pro/matrix.c +++ b/keyboards/keychron/k13_pro/matrix.c diff --git a/keyboards/keychron/k13_pro/mcuconf.h b/keyboards/keychron/k13_pro/mcuconf.h index 30b6109616..30b6109616 100755..100644 --- a/keyboards/keychron/k13_pro/mcuconf.h +++ b/keyboards/keychron/k13_pro/mcuconf.h diff --git a/keyboards/keychron/k13_pro/readme.md b/keyboards/keychron/k13_pro/readme.md index eb6ffefcd3..eb6ffefcd3 100755..100644 --- a/keyboards/keychron/k13_pro/readme.md +++ b/keyboards/keychron/k13_pro/readme.md diff --git a/keyboards/keychron/k13_pro/rules.mk b/keyboards/keychron/k13_pro/rules.mk index ee301839c3..ee301839c3 100755..100644 --- a/keyboards/keychron/k13_pro/rules.mk +++ b/keyboards/keychron/k13_pro/rules.mk |