summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xkeyboards/keychron/common/common.mk4
-rwxr-xr-xkeyboards/keychron/common/matrix.c (renamed from keyboards/keychron/q5_pro/matrix.c)130
-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
-rw-r--r--keyboards/keychron/k10_pro/ansi/white/config.h2
-rw-r--r--keyboards/keychron/k10_pro/ansi/white/info.json117
-rw-r--r--keyboards/keychron/k10_pro/ansi/white/keymaps/default/keymap.c4
-rw-r--r--keyboards/keychron/k10_pro/ansi/white/keymaps/via/keymap.c14
-rw-r--r--keyboards/keychron/k10_pro/ansi/white/white.c29
-rw-r--r--keyboards/keychron/k10_pro/config.h7
-rw-r--r--keyboards/keychron/k10_pro/info.json125
-rw-r--r--keyboards/keychron/k10_pro/iso/rgb/config.h3
-rw-r--r--keyboards/keychron/k10_pro/iso/rgb/info.json119
-rw-r--r--keyboards/keychron/k10_pro/iso/rgb/keymaps/via/keymap.c6
-rw-r--r--keyboards/keychron/k10_pro/iso/rgb/rgb.c32
-rw-r--r--keyboards/keychron/k10_pro/iso/white/config.h5
-rw-r--r--keyboards/keychron/k10_pro/iso/white/info.json118
-rw-r--r--keyboards/keychron/k10_pro/iso/white/keymaps/default/keymap.c14
-rw-r--r--keyboards/keychron/k10_pro/iso/white/keymaps/via/keymap.c16
-rw-r--r--keyboards/keychron/k10_pro/iso/white/white.c32
-rwxr-xr-xkeyboards/keychron/k10_pro/jis/rgb/config.h53
-rwxr-xr-xkeyboards/keychron/k10_pro/jis/rgb/info.json154
-rwxr-xr-xkeyboards/keychron/k10_pro/jis/rgb/keymaps/default/keymap.c59
-rwxr-xr-xkeyboards/keychron/k10_pro/jis/rgb/keymaps/via/keymap.c59
-rwxr-xr-xkeyboards/keychron/k10_pro/jis/rgb/keymaps/via/rules.mk1
-rwxr-xr-xkeyboards/keychron/k10_pro/jis/rgb/rgb.c146
-rwxr-xr-xkeyboards/keychron/k10_pro/jis/rgb/rules.mk1
-rwxr-xr-xkeyboards/keychron/k10_pro/jis/white/config.h52
-rwxr-xr-xkeyboards/keychron/k10_pro/jis/white/info.json149
-rwxr-xr-xkeyboards/keychron/k10_pro/jis/white/keymaps/default/keymap.c59
-rwxr-xr-xkeyboards/keychron/k10_pro/jis/white/keymaps/via/keymap.c59
-rwxr-xr-xkeyboards/keychron/k10_pro/jis/white/keymaps/via/rules.mk1
-rwxr-xr-xkeyboards/keychron/k10_pro/jis/white/rules.mk1
-rwxr-xr-xkeyboards/keychron/k10_pro/jis/white/white.c144
-rw-r--r--keyboards/keychron/k10_pro/k10_pro.c45
-rw-r--r--keyboards/keychron/k10_pro/k10_pro.h4
-rw-r--r--keyboards/keychron/k10_pro/matrix.c170
-rw-r--r--keyboards/keychron/k10_pro/readme.md10
-rw-r--r--keyboards/keychron/k10_pro/rules.mk5
-rw-r--r--keyboards/keychron/k10_pro/via_json/k10_pro_ansi_rgb.json4
-rw-r--r--keyboards/keychron/k10_pro/via_json/k10_pro_ansi_white.json4
-rwxr-xr-xkeyboards/keychron/k10_pro/via_json/k10_pro_iso_rgb.json350
-rwxr-xr-xkeyboards/keychron/k10_pro/via_json/k10_pro_iso_white.json289
-rwxr-xr-xkeyboards/keychron/k10_pro/via_json/k10_pro_jis_rgb.json351
-rwxr-xr-xkeyboards/keychron/k10_pro/via_json/k10_pro_jis_white.json290
-rwxr-xr-xkeyboards/keychron/k15_pro/ansi_encoder/rgb/config.h56
-rwxr-xr-xkeyboards/keychron/k15_pro/ansi_encoder/rgb/info.json131
-rwxr-xr-xkeyboards/keychron/k15_pro/ansi_encoder/rgb/keymaps/default/keymap.c68
-rwxr-xr-xkeyboards/keychron/k15_pro/ansi_encoder/rgb/keymaps/default/rules.mk1
-rwxr-xr-xkeyboards/keychron/k15_pro/ansi_encoder/rgb/keymaps/via/keymap.c68
-rwxr-xr-xkeyboards/keychron/k15_pro/ansi_encoder/rgb/keymaps/via/rules.mk2
-rwxr-xr-xkeyboards/keychron/k15_pro/ansi_encoder/rgb/rgb.c123
-rwxr-xr-xkeyboards/keychron/k15_pro/ansi_encoder/rgb/rules.mk1
-rwxr-xr-xkeyboards/keychron/k15_pro/ansi_encoder/white/config.h51
-rwxr-xr-xkeyboards/keychron/k15_pro/ansi_encoder/white/info.json126
-rwxr-xr-xkeyboards/keychron/k15_pro/ansi_encoder/white/keymaps/default/keymap.c68
-rwxr-xr-xkeyboards/keychron/k15_pro/ansi_encoder/white/keymaps/default/rules.mk1
-rwxr-xr-xkeyboards/keychron/k15_pro/ansi_encoder/white/keymaps/via/keymap.c68
-rwxr-xr-xkeyboards/keychron/k15_pro/ansi_encoder/white/keymaps/via/rules.mk2
-rwxr-xr-xkeyboards/keychron/k15_pro/ansi_encoder/white/rules.mk1
-rwxr-xr-xkeyboards/keychron/k15_pro/ansi_encoder/white/white.c121
-rwxr-xr-xkeyboards/keychron/k15_pro/config.h86
-rwxr-xr-xkeyboards/keychron/k15_pro/halconf.h29
-rwxr-xr-xkeyboards/keychron/k15_pro/info.json140
-rwxr-xr-xkeyboards/keychron/k15_pro/k15_pro.c342
-rwxr-xr-xkeyboards/keychron/k15_pro/k15_pro.h57
-rwxr-xr-xkeyboards/keychron/k15_pro/mcuconf.h39
-rwxr-xr-xkeyboards/keychron/k15_pro/readme.md23
-rwxr-xr-xkeyboards/keychron/k15_pro/rules.mk6
-rwxr-xr-xkeyboards/keychron/k15_pro/via_json/k15_pro_ansi_encoder_rgb.json396
-rwxr-xr-xkeyboards/keychron/k15_pro/via_json/k15_pro_ansi_encoder_white.json335
-rwxr-xr-xkeyboards/keychron/q14_pro/config.h6
-rwxr-xr-xkeyboards/keychron/q14_pro/info.json2
-rwxr-xr-xkeyboards/keychron/q14_pro/matrix.c190
-rwxr-xr-xkeyboards/keychron/q14_pro/rules.mk3
-rw-r--r--keyboards/keychron/q1_pro/config.h8
-rw-r--r--keyboards/keychron/q1_pro/halconf.h3
-rw-r--r--keyboards/keychron/q1_pro/jis_encoder/config.h58
-rw-r--r--keyboards/keychron/q1_pro/jis_encoder/info.json198
-rw-r--r--keyboards/keychron/q1_pro/jis_encoder/jis_encoder.c120
-rw-r--r--keyboards/keychron/q1_pro/jis_encoder/keymaps/default/keymap.c68
-rw-r--r--keyboards/keychron/q1_pro/jis_encoder/keymaps/default/rules.mk1
-rw-r--r--keyboards/keychron/q1_pro/jis_encoder/keymaps/via/keymap.c68
-rw-r--r--keyboards/keychron/q1_pro/jis_encoder/keymaps/via/rules.mk2
-rw-r--r--keyboards/keychron/q1_pro/jis_encoder/rules.mk1
-rw-r--r--keyboards/keychron/q1_pro/matrix.c176
-rw-r--r--keyboards/keychron/q1_pro/mcuconf.h3
-rw-r--r--keyboards/keychron/q1_pro/q1_pro.c42
-rw-r--r--keyboards/keychron/q2_pro/config.h9
-rw-r--r--keyboards/keychron/q2_pro/matrix.c190
-rw-r--r--keyboards/keychron/q2_pro/rules.mk3
-rwxr-xr-xkeyboards/keychron/q3_pro/ansi_encoder/rules.mk2
-rw-r--r--keyboards/keychron/q3_pro/ansi_encoder_se/rules.mk2
-rw-r--r--keyboards/keychron/q3_pro/config.h10
-rwxr-xr-xkeyboards/keychron/q3_pro/iso_encoder/config.h68
-rwxr-xr-xkeyboards/keychron/q3_pro/iso_encoder/info.json214
-rwxr-xr-xkeyboards/keychron/q3_pro/iso_encoder/iso_encoder.c122
-rwxr-xr-xkeyboards/keychron/q3_pro/iso_encoder/keymaps/default/keymap.c68
-rwxr-xr-xkeyboards/keychron/q3_pro/iso_encoder/keymaps/default/rules.mk1
-rwxr-xr-xkeyboards/keychron/q3_pro/iso_encoder/keymaps/via/keymap.c68
-rwxr-xr-xkeyboards/keychron/q3_pro/iso_encoder/keymaps/via/rules.mk2
-rwxr-xr-xkeyboards/keychron/q3_pro/iso_encoder/rules.mk1
-rwxr-xr-xkeyboards/keychron/q3_pro/iso_encoder_se/rules.mk2
-rwxr-xr-xkeyboards/keychron/q3_pro/jis_encoder_se/config.h70
-rwxr-xr-xkeyboards/keychron/q3_pro/jis_encoder_se/info.json237
-rwxr-xr-xkeyboards/keychron/q3_pro/jis_encoder_se/jis_encoder_se.c129
-rwxr-xr-xkeyboards/keychron/q3_pro/jis_encoder_se/keymaps/default/keymap.c68
-rwxr-xr-xkeyboards/keychron/q3_pro/jis_encoder_se/keymaps/default/rules.mk1
-rwxr-xr-xkeyboards/keychron/q3_pro/jis_encoder_se/keymaps/via/keymap.c68
-rwxr-xr-xkeyboards/keychron/q3_pro/jis_encoder_se/keymaps/via/rules.mk2
-rwxr-xr-xkeyboards/keychron/q3_pro/jis_encoder_se/rules.mk1
-rw-r--r--keyboards/keychron/q3_pro/matrix.c (renamed from keyboards/keychron/q3_pro/matrix_v1.c)0
-rwxr-xr-xkeyboards/keychron/q3_pro/matrix_v2.c190
-rwxr-xr-xkeyboards/keychron/q4_pro/config.h7
-rwxr-xr-xkeyboards/keychron/q4_pro/matrix.c190
-rwxr-xr-xkeyboards/keychron/q4_pro/rules.mk3
-rwxr-xr-xkeyboards/keychron/q5_pro/config.h10
-rwxr-xr-xkeyboards/keychron/q5_pro/rules.mk4
-rwxr-xr-xkeyboards/keychron/q6_pro/config.h11
-rw-r--r--keyboards/keychron/q6_pro/matrix.c188
-rwxr-xr-xkeyboards/keychron/q6_pro/readme.md4
-rwxr-xr-xkeyboards/keychron/q6_pro/rules.mk3
-rwxr-xr-xkeyboards/keychron/q8_pro/config.h12
-rw-r--r--keyboards/keychron/q8_pro/matrix.c191
-rwxr-xr-xkeyboards/keychron/q8_pro/rules.mk3
127 files changed, 7069 insertions, 1761 deletions
diff --git a/keyboards/keychron/common/common.mk b/keyboards/keychron/common/common.mk
new file mode 100755
index 0000000000..d7610bce69
--- /dev/null
+++ b/keyboards/keychron/common/common.mk
@@ -0,0 +1,4 @@
+COMMON_DIR = common
+SRC += $(COMMON_DIR)/matrix.c
+
+VPATH += $(TOP_DIR)/keyboards/keychron/$(COMMON_DIR)
diff --git a/keyboards/keychron/q5_pro/matrix.c b/keyboards/keychron/common/matrix.c
index ee2d24e612..8fe7588118 100755
--- a/keyboards/keychron/q5_pro/matrix.c
+++ b/keyboards/keychron/common/matrix.c
@@ -16,11 +16,41 @@
#include "quantum.h"
-#define HC595_STCP B0
-#define HC595_SHCP A1
-#define HC595_DS A7
+#ifndef HC595_STCP
<