summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xkeyboards/keychron/k12_pro/ansi/rgb/config.h48
-rwxr-xr-xkeyboards/keychron/k12_pro/ansi/rgb/info.json102
-rwxr-xr-xkeyboards/keychron/k12_pro/ansi/rgb/keymaps/default/keymap.c63
-rwxr-xr-xkeyboards/keychron/k12_pro/ansi/rgb/keymaps/via/keymap.c63
-rwxr-xr-xkeyboards/keychron/k12_pro/ansi/rgb/keymaps/via/rules.mk2
-rwxr-xr-xkeyboards/keychron/k12_pro/ansi/rgb/rgb.c94
-rwxr-xr-xkeyboards/keychron/k12_pro/ansi/rgb/rules.mk1
-rwxr-xr-xkeyboards/keychron/k12_pro/ansi/white/config.h49
-rwxr-xr-xkeyboards/keychron/k12_pro/ansi/white/info.json97
-rwxr-xr-xkeyboards/keychron/k12_pro/ansi/white/keymaps/default/keymap.c63
-rwxr-xr-xkeyboards/keychron/k12_pro/ansi/white/keymaps/via/keymap.c63
-rwxr-xr-xkeyboards/keychron/k12_pro/ansi/white/keymaps/via/rules.mk2
-rwxr-xr-xkeyboards/keychron/k12_pro/ansi/white/rules.mk1
-rwxr-xr-xkeyboards/keychron/k12_pro/ansi/white/white.c92
-rwxr-xr-xkeyboards/keychron/k12_pro/config.h92
-rwxr-xr-xkeyboards/keychron/k12_pro/halconf.h29
-rwxr-xr-xkeyboards/keychron/k12_pro/info.json99
-rwxr-xr-xkeyboards/keychron/k12_pro/k12_pro.c312
-rwxr-xr-xkeyboards/keychron/k12_pro/k12_pro.h55
-rwxr-xr-xkeyboards/keychron/k12_pro/matrix.c190
-rwxr-xr-xkeyboards/keychron/k12_pro/mcuconf.h36
-rwxr-xr-xkeyboards/keychron/k12_pro/readme.md23
-rwxr-xr-xkeyboards/keychron/k12_pro/rules.mk8
-rwxr-xr-xkeyboards/keychron/k12_pro/via_json/k12_pro_ansi_rgb.json225
-rwxr-xr-xkeyboards/keychron/k12_pro/via_json/k12_pro_ansi_white.json164
-rwxr-xr-x[-rw-r--r--]keyboards/keychron/q3_pro/ansi_encoder/ansi_encoder.c39
-rwxr-xr-x[-rw-r--r--]keyboards/keychron/q3_pro/ansi_encoder/config.h35
-rwxr-xr-x[-rw-r--r--]keyboards/keychron/q3_pro/ansi_encoder/info.json290
-rwxr-xr-x[-rw-r--r--]keyboards/keychron/q3_pro/ansi_encoder/keymaps/default/keymap.c61
-rwxr-xr-x[-rw-r--r--]keyboards/keychron/q3_pro/ansi_encoder/keymaps/default/rules.mk0
-rwxr-xr-x[-rw-r--r--]keyboards/keychron/q3_pro/ansi_encoder/keymaps/via/keymap.c61
-rwxr-xr-x[-rw-r--r--]keyboards/keychron/q3_pro/ansi_encoder/keymaps/via/rules.mk0
-rwxr-xr-x[-rw-r--r--]keyboards/keychron/q3_pro/ansi_encoder/rules.mk2
-rw-r--r--keyboards/keychron/q3_pro/ansi_encoder_se/ansi_encoder_se.c125
-rw-r--r--keyboards/keychron/q3_pro/ansi_encoder_se/config.h54
-rw-r--r--keyboards/keychron/q3_pro/ansi_encoder_se/info.json234
-rw-r--r--keyboards/keychron/q3_pro/ansi_encoder_se/keymaps/default/keymap.c68
-rw-r--r--keyboards/keychron/q3_pro/ansi_encoder_se/keymaps/default/rules.mk1
-rw-r--r--keyboards/keychron/q3_pro/ansi_encoder_se/keymaps/via/keymap.c68
-rw-r--r--keyboards/keychron/q3_pro/ansi_encoder_se/keymaps/via/rules.mk2
-rw-r--r--keyboards/keychron/q3_pro/ansi_encoder_se/rules.mk1
-rw-r--r--keyboards/keychron/q3_pro/config.h6
-rw-r--r--keyboards/keychron/q3_pro/info.json21
-rwxr-xr-xkeyboards/keychron/q3_pro/iso_encoder_se/config.h58
-rwxr-xr-xkeyboards/keychron/q3_pro/iso_encoder_se/info.json231
-rwxr-xr-xkeyboards/keychron/q3_pro/iso_encoder_se/iso_encoder_se.c126
-rwxr-xr-xkeyboards/keychron/q3_pro/iso_encoder_se/keymaps/default/keymap.c68
-rwxr-xr-xkeyboards/keychron/q3_pro/iso_encoder_se/keymaps/default/rules.mk1
-rwxr-xr-xkeyboards/keychron/q3_pro/iso_encoder_se/keymaps/via/keymap.c68
-rwxr-xr-xkeyboards/keychron/q3_pro/iso_encoder_se/keymaps/via/rules.mk2
-rwxr-xr-xkeyboards/keychron/q3_pro/iso_encoder_se/rules.mk1
-rw-r--r--keyboards/keychron/q3_pro/matrix_v1.c (renamed from keyboards/keychron/q3_pro/matrix.c)5
-rwxr-xr-xkeyboards/keychron/q3_pro/matrix_v2.c190
-rw-r--r--keyboards/keychron/q3_pro/q3_pro.c50
-rw-r--r--keyboards/keychron/q3_pro/readme.md8
-rw-r--r--keyboards/keychron/q3_pro/rules.mk2
-rwxr-xr-xkeyboards/keychron/q3_pro/via_json/q3_pro_ansi_encoder_v1.json332
-rwxr-xr-xkeyboards/keychron/q3_pro/via_json/q3_pro_ansi_encoder_v2.json291
-rwxr-xr-xkeyboards/keychron/q3_pro/via_json/q3_pro_iso_encoder_v1.json337
-rwxr-xr-xkeyboards/keychron/q4_pro/ansi/ansi.c94
-rwxr-xr-xkeyboards/keychron/q4_pro/ansi/config.h43
-rwxr-xr-xkeyboards/keychron/q4_pro/ansi/info.json146
-rwxr-xr-xkeyboards/keychron/q4_pro/ansi/keymaps/default/keymap.c63
-rwxr-xr-xkeyboards/keychron/q4_pro/ansi/keymaps/via/keymap.c63
-rwxr-xr-xkeyboards/keychron/q4_pro/ansi/keymaps/via/rules.mk2
-rwxr-xr-xkeyboards/keychron/q4_pro/ansi/rules.mk1
-rwxr-xr-xkeyboards/keychron/q4_pro/config.h84
-rwxr-xr-xkeyboards/keychron/q4_pro/halconf.h29
-rwxr-xr-xkeyboards/keychron/q4_pro/info.json55
-rwxr-xr-xkeyboards/keychron/q4_pro/iso/config.h45
-rwxr-xr-xkeyboards/keychron/q4_pro/iso/info.json172
-rwxr-xr-xkeyboards/keychron/q4_pro/iso/iso.c95
-rwxr-xr-xkeyboards/keychron/q4_pro/iso/keymaps/default/keymap.c63
-rwxr-xr-xkeyboards/keychron/q4_pro/iso/keymaps/via/keymap.c63
-rwxr-xr-xkeyboards/keychron/q4_pro/iso/keymaps/via/rules.mk2
-rwxr-xr-xkeyboards/keychron/q4_pro/iso/rules.mk1
-rwxr-xr-xkeyboards/keychron/q4_pro/matrix.c190
-rwxr-xr-xkeyboards/keychron/q4_pro/mcuconf.h41
-rwxr-xr-xkeyboards/keychron/q4_pro/q4_pro.c298
-rwxr-xr-xkeyboards/keychron/q4_pro/q4_pro.h53
-rwxr-xr-xkeyboards/keychron/q4_pro/readme.md23
-rwxr-xr-xkeyboards/keychron/q4_pro/rules.mk7
-rwxr-xr-xkeyboards/keychron/q4_pro/via_json/q4_pro_ansi_rgb.json225
-rwxr-xr-xkeyboards/keychron/q4_pro/via_json/q4_pro_iso_rgb.json229
-rwxr-xr-xkeyboards/keychron/q5_pro/ansi_encoder/ansi_encoder.c135
-rwxr-xr-xkeyboards/keychron/q5_pro/ansi_encoder/config.h49
-rwxr-xr-xkeyboards/keychron/q5_pro/ansi_encoder/info.json230
-rwxr-xr-xkeyboards/keychron/q5_pro/ansi_encoder/keymaps/default/keymap.c65
-rwxr-xr-xkeyboards/keychron/q5_pro/ansi_encoder/keymaps/default/rules.mk1
-rwxr-xr-xkeyboards/keychron/q5_pro/ansi_encoder/keymaps/via/keymap.c65
-rwxr-xr-xkeyboards/keychron/q5_pro/ansi_encoder/keymaps/via/rules.mk2
-rwxr-xr-xkeyboards/keychron/q5_pro/ansi_encoder/rules.mk1
-rwxr-xr-xkeyboards/keychron/q5_pro/config.h88
-rwxr-xr-xkeyboards/keychron/q5_pro/halconf.h29
-rwxr-xr-xkeyboards/keychron/q5_pro/info.json61
-rwxr-xr-xkeyboards/keychron/q5_pro/iso_encoder/config.h49
-rwxr-xr-xkeyboards/keychron/q5_pro/iso_encoder/info.json232
-rwxr-xr-xkeyboards/keychron/q5_pro/iso_encoder/iso_encoder.c136
-rwxr-xr-xkeyboards/keychron/q5_pro/iso_encoder/keymaps/default/keymap.c65
-rwxr-xr-xkeyboards/keychron/q5_pro/iso_encoder/keymaps/default/rules.mk1
-rwxr-xr-xkeyboards/keychron/q5_pro/iso_encoder/keymaps/via/keymap.c65
-rwxr-xr-xkeyboards/keychron/q5_pro/iso_encoder/keymaps/via/rules.mk2
-rwxr-xr-xkeyboards/keychron/q5_pro/iso_encoder/rules.mk1
-rwxr-xr-xkeyboards/keychron/q5_pro/matrix.c190
-rwxr-xr-xkeyboards/keychron/q5_pro/mcuconf.h37
-rwxr-xr-xkeyboards/keychron/q5_pro/q5_pro.c315
-rwxr-xr-xkeyboards/keychron/q5_pro/q5_pro.h55
-rwxr-xr-xkeyboards/keychron/q5_pro/readme.md23
-rwxr-xr-xkeyboards/keychron/q5_pro/rules.mk8
-rwxr-xr-xkeyboards/keychron/q5_pro/via_json/q5_pro_ansi_encoder.json335
-rwxr-xr-xkeyboards/keychron/q5_pro/via_json/q5_pro_iso_encoder.json340
111 files changed, 9217 insertions, 261 deletions
diff --git a/keyboards/keychron/k12_pro/ansi/rgb/config.h b/keyboards/keychron/k12_pro/ansi/rgb/config.h
new file mode 100755
index 0000000000..29a8b9f7f5
--- /dev/null
+++ b/keyboards/keychron/k12_pro/ansi/rgb/config.h
@@ -0,0 +1,48 @@
+/* Copyright 2023 @ Keychron (https://www.keychron.com)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+#ifdef RGB_MATRIX_ENABLE
+/* RGB Matrix driver configuration */
+# define DRIVER_COUNT 1
+# define DRIVER_ADDR_1 0b1110100
+# define RGB_MATRIX_LED_COUNT 61
+
+/* Set to infinit, which is use in USB mode by default */
+# define RGB_MATRIX_TIMEOUT RGB_MATRIX_TIMEOUT_INFINITE
+
+/* Allow shutdown of led driver to save power */
+# define RGB_MATRIX_DRIVER_SHUTDOWN_ENABLE
+
+/* Turn off backlight on low brightness to save power */
+# define RGB_MATRIX_BRIGHTNESS_TURN_OFF_VAL 48
+
+/* Indication led */
+# define DIM_CAPS_LOCK
+# define CAPS_LOCK_INDEX 28
+# define LOW_BAT_IND_INDEX 56
+
+// RGB Matrix Animation modes. Explicitly enabled
+// For full list of effects, see: