aboutsummaryrefslogtreecommitdiff
path: root/keyboards/keychron
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keychron')
-rw-r--r--keyboards/keychron/c1_pro/info.json2
-rw-r--r--keyboards/keychron/c1_pro_v2/info.json2
-rw-r--r--keyboards/keychron/c2_pro/info.json2
-rw-r--r--keyboards/keychron/c2_pro_v2/info.json2
-rw-r--r--keyboards/keychron/c3_pro/info.json2
-rw-r--r--keyboards/keychron/q0/info.json2
-rwxr-xr-xkeyboards/keychron/q11/info.json2
-rw-r--r--keyboards/keychron/q1v1/info.json2
-rw-r--r--keyboards/keychron/q1v2/info.json2
-rw-r--r--keyboards/keychron/q2/info.json2
-rw-r--r--keyboards/keychron/q3/info.json2
-rw-r--r--keyboards/keychron/q4/info.json2
-rw-r--r--keyboards/keychron/q5/info.json2
-rw-r--r--keyboards/keychron/q60/ansi/keyboard.json2
-rw-r--r--keyboards/keychron/q7/info.json2
-rw-r--r--keyboards/keychron/q8/info.json2
-rw-r--r--keyboards/keychron/q9/info.json2
-rwxr-xr-xkeyboards/keychron/q9_plus/info.json2
-rw-r--r--keyboards/keychron/s1/ansi/rgb/keyboard.json2
-rw-r--r--keyboards/keychron/s1/ansi/white/keyboard.json2
-rw-r--r--keyboards/keychron/v2/ansi/keyboard.json2
-rw-r--r--keyboards/keychron/v2/ansi_encoder/keyboard.json2
-rw-r--r--keyboards/keychron/v2/iso/keyboard.json2
-rw-r--r--keyboards/keychron/v2/iso_encoder/keyboard.json2
-rw-r--r--keyboards/keychron/v2/jis/keyboard.json2
-rw-r--r--keyboards/keychron/v2/jis_encoder/keyboard.json2
-rw-r--r--keyboards/keychron/v3/ansi/keyboard.json2
-rw-r--r--keyboards/keychron/v3/iso/keyboard.json1
-rw-r--r--keyboards/keychron/v3/jis/keyboard.json2
-rw-r--r--keyboards/keychron/v4/ansi/keyboard.json2
-rw-r--r--keyboards/keychron/v4/iso/keyboard.json2
-rw-r--r--keyboards/keychron/v7/ansi/keyboard.json2
-rw-r--r--keyboards/keychron/v7/iso/keyboard.json2
-rw-r--r--keyboards/keychron/v8/ansi/keyboard.json2
-rw-r--r--keyboards/keychron/v8/ansi_encoder/keyboard.json2
-rw-r--r--keyboards/keychron/v8/iso/keyboard.json2
-rw-r--r--keyboards/keychron/v8/iso_encoder/keyboard.json2
-rw-r--r--keyboards/keychron/x0/board.h8
-rw-r--r--keyboards/keychron/x0/config.h23
-rw-r--r--keyboards/keychron/x0/halconf.h21
-rw-r--r--keyboards/keychron/x0/info.json73
-rw-r--r--keyboards/keychron/x0/mcuconf.h25
-rw-r--r--keyboards/keychron/x0/readme.md23
-rw-r--r--keyboards/keychron/x0/red/config.h25
-rw-r--r--keyboards/keychron/x0/red/keyboard.json60
-rw-r--r--keyboards/keychron/x0/red/keymaps/default/keymap.c41
-rw-r--r--keyboards/keychron/x0/red/red.c61
47 files changed, 360 insertions, 73 deletions
diff --git a/keyboards/keychron/c1_pro/info.json b/keyboards/keychron/c1_pro/info.json
index e40c2b9960..d38a273d45 100644
--- a/keyboards/keychron/c1_pro/info.json
+++ b/keyboards/keychron/c1_pro/info.json
@@ -15,8 +15,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/c1_pro_v2/info.json b/keyboards/keychron/c1_pro_v2/info.json
index bec58b2a8d..1e6305eb33 100644
--- a/keyboards/keychron/c1_pro_v2/info.json
+++ b/keyboards/keychron/c1_pro_v2/info.json
@@ -10,8 +10,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/c2_pro/info.json b/keyboards/keychron/c2_pro/info.json
index 4b11fc213a..9c0e1ac72e 100644
--- a/keyboards/keychron/c2_pro/info.json
+++ b/keyboards/keychron/c2_pro/info.json
@@ -15,8 +15,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/c2_pro_v2/info.json b/keyboards/keychron/c2_pro_v2/info.json
index b210151800..9572c9812a 100644
--- a/keyboards/keychron/c2_pro_v2/info.json
+++ b/keyboards/keychron/c2_pro_v2/info.json
@@ -12,8 +12,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/c3_pro/info.json b/keyboards/keychron/c3_pro/info.json
index 2bcd155c1b..24a77aae07 100644
--- a/keyboards/keychron/c3_pro/info.json
+++ b/keyboards/keychron/c3_pro/info.json
@@ -11,8 +11,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"extrakey": true,
"mousekey": true,
"nkro": true
diff --git a/keyboards/keychron/q0/info.json b/keyboards/keychron/q0/info.json
index a301746831..666a797411 100644
--- a/keyboards/keychron/q0/info.json
+++ b/keyboards/keychron/q0/info.json
@@ -10,8 +10,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"extrakey": true,
"mousekey": true,
"nkro": true,
diff --git a/keyboards/keychron/q11/info.json b/keyboards/keychron/q11/info.json
index 73c4233876..bb9a8f7d0d 100755
--- a/keyboards/keychron/q11/info.json
+++ b/keyboards/keychron/q11/info.json
@@ -21,8 +21,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/q1v1/info.json b/keyboards/keychron/q1v1/info.json
index 0107c60b9c..b8ab503b07 100644
--- a/keyboards/keychron/q1v1/info.json
+++ b/keyboards/keychron/q1v1/info.json
@@ -9,8 +9,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/q1v2/info.json b/keyboards/keychron/q1v2/info.json
index 7eb7038696..f0342254fa 100644
--- a/keyboards/keychron/q1v2/info.json
+++ b/keyboards/keychron/q1v2/info.json
@@ -10,8 +10,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"extrakey": true,
"mousekey": true,
"nkro": true,
diff --git a/keyboards/keychron/q2/info.json b/keyboards/keychron/q2/info.json
index d0bb48d7cb..c322a9902f 100644
--- a/keyboards/keychron/q2/info.json
+++ b/keyboards/keychron/q2/info.json
@@ -14,8 +14,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/q3/info.json b/keyboards/keychron/q3/info.json
index a07fc670d8..a08a115bb6 100644
--- a/keyboards/keychron/q3/info.json
+++ b/keyboards/keychron/q3/info.json
@@ -14,8 +14,6 @@
"features": {
"bootmagic": true,
"dip_switch": true,
- "command": false,
- "console": false,
"extrakey": true,
"mousekey": true,
"nkro": true,
diff --git a/keyboards/keychron/q4/info.json b/keyboards/keychron/q4/info.json
index 4b9f246b4c..bcbfd74217 100644
--- a/keyboards/keychron/q4/info.json
+++ b/keyboards/keychron/q4/info.json
@@ -18,8 +18,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"extrakey": true,
"mousekey": true,
"nkro": true,
diff --git a/keyboards/keychron/q5/info.json b/keyboards/keychron/q5/info.json
index b35996d341..1e7a5de703 100644
--- a/keyboards/keychron/q5/info.json
+++ b/keyboards/keychron/q5/info.json
@@ -14,8 +14,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/q60/ansi/keyboard.json b/keyboards/keychron/q60/ansi/keyboard.json
index 4d6f680890..83ee57d011 100644
--- a/keyboards/keychron/q60/ansi/keyboard.json
+++ b/keyboards/keychron/q60/ansi/keyboard.json
@@ -10,8 +10,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/q7/info.json b/keyboards/keychron/q7/info.json
index 6b8a94ce99..663ad4b275 100644
--- a/keyboards/keychron/q7/info.json
+++ b/keyboards/keychron/q7/info.json
@@ -17,8 +17,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/q8/info.json b/keyboards/keychron/q8/info.json
index da4c9c6f79..b0478e019b 100644
--- a/keyboards/keychron/q8/info.json
+++ b/keyboards/keychron/q8/info.json
@@ -17,8 +17,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/q9/info.json b/keyboards/keychron/q9/info.json
index 322fcfa1ad..ff80a256d3 100644
--- a/keyboards/keychron/q9/info.json
+++ b/keyboards/keychron/q9/info.json
@@ -14,8 +14,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/q9_plus/info.json b/keyboards/keychron/q9_plus/info.json
index 927f5094a6..8d5034971f 100755
--- a/keyboards/keychron/q9_plus/info.json
+++ b/keyboards/keychron/q9_plus/info.json
@@ -10,8 +10,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"extrakey": true,
"mousekey": true,
"dip_switch": true,
diff --git a/keyboards/keychron/s1/ansi/rgb/keyboard.json b/keyboards/keychron/s1/ansi/rgb/keyboard.json
index 23ea66071e..fb52ee6423 100644
--- a/keyboards/keychron/s1/ansi/rgb/keyboard.json
+++ b/keyboards/keychron/s1/ansi/rgb/keyboard.json
@@ -37,8 +37,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/s1/ansi/white/keyboard.json b/keyboards/keychron/s1/ansi/white/keyboard.json
index 40cc99a23f..7118ebfc44 100644
--- a/keyboards/keychron/s1/ansi/white/keyboard.json
+++ b/keyboards/keychron/s1/ansi/white/keyboard.json
@@ -123,8 +123,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"led_matrix": true,
diff --git a/keyboards/keychron/v2/ansi/keyboard.json b/keyboards/keychron/v2/ansi/keyboard.json
index 015aae6e3e..bc09cb8a27 100644
--- a/keyboards/keychron/v2/ansi/keyboard.json
+++ b/keyboards/keychron/v2/ansi/keyboard.json
@@ -10,8 +10,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/v2/ansi_encoder/keyboard.json b/keyboards/keychron/v2/ansi_encoder/keyboard.json
index ca62bab148..6752d14b15 100644
--- a/keyboards/keychron/v2/ansi_encoder/keyboard.json
+++ b/keyboards/keychron/v2/ansi_encoder/keyboard.json
@@ -10,8 +10,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"encoder": true,
"extrakey": true,
diff --git a/keyboards/keychron/v2/iso/keyboard.json b/keyboards/keychron/v2/iso/keyboard.json
index 827f613247..89bdb51a65 100644
--- a/keyboards/keychron/v2/iso/keyboard.json
+++ b/keyboards/keychron/v2/iso/keyboard.json
@@ -10,8 +10,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/v2/iso_encoder/keyboard.json b/keyboards/keychron/v2/iso_encoder/keyboard.json
index 10774d6974..89ce2714f1 100644
--- a/keyboards/keychron/v2/iso_encoder/keyboard.json
+++ b/keyboards/keychron/v2/iso_encoder/keyboard.json
@@ -10,8 +10,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"encoder": true,
"extrakey": true,
diff --git a/keyboards/keychron/v2/jis/keyboard.json b/keyboards/keychron/v2/jis/keyboard.json
index c775944009..01beaf31ac 100644
--- a/keyboards/keychron/v2/jis/keyboard.json
+++ b/keyboards/keychron/v2/jis/keyboard.json
@@ -10,8 +10,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/v2/jis_encoder/keyboard.json b/keyboards/keychron/v2/jis_encoder/keyboard.json
index c783b3553e..d8a540953c 100644
--- a/keyboards/keychron/v2/jis_encoder/keyboard.json
+++ b/keyboards/keychron/v2/jis_encoder/keyboard.json
@@ -10,8 +10,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"encoder": true,
"extrakey": true,
diff --git a/keyboards/keychron/v3/ansi/keyboard.json b/keyboards/keychron/v3/ansi/keyboard.json
index b8489a43b4..d388456227 100644
--- a/keyboards/keychron/v3/ansi/keyboard.json
+++ b/keyboards/keychron/v3/ansi/keyboard.json
@@ -5,8 +5,6 @@
"maintainer": "lalalademaxiya1",
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/v3/iso/keyboard.json b/keyboards/keychron/v3/iso/keyboard.json
index b257deb1c0..40a8139ccc 100644
--- a/keyboards/keychron/v3/iso/keyboard.json
+++ b/keyboards/keychron/v3/iso/keyboard.json
@@ -5,7 +5,6 @@
"maintainer": "lalalademaxiya1",
"features": {
"bootmagic": true,
- "command": false,
"console": true,
"dip_switch": true,
"extrakey": true,
diff --git a/keyboards/keychron/v3/jis/keyboard.json b/keyboards/keychron/v3/jis/keyboard.json
index f00716b2db..0bc3a43d0e 100644
--- a/keyboards/keychron/v3/jis/keyboard.json
+++ b/keyboards/keychron/v3/jis/keyboard.json
@@ -5,8 +5,6 @@
"maintainer": "lalalademaxiya1",
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/v4/ansi/keyboard.json b/keyboards/keychron/v4/ansi/keyboard.json
index d66eb3f956..7184e32f27 100644
--- a/keyboards/keychron/v4/ansi/keyboard.json
+++ b/keyboards/keychron/v4/ansi/keyboard.json
@@ -10,8 +10,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/v4/iso/keyboard.json b/keyboards/keychron/v4/iso/keyboard.json
index c7854307e4..8077844652 100644
--- a/keyboards/keychron/v4/iso/keyboard.json
+++ b/keyboards/keychron/v4/iso/keyboard.json
@@ -10,8 +10,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/v7/ansi/keyboard.json b/keyboards/keychron/v7/ansi/keyboard.json
index a60b46dc97..503aea5ab6 100644
--- a/keyboards/keychron/v7/ansi/keyboard.json
+++ b/keyboards/keychron/v7/ansi/keyboard.json
@@ -10,8 +10,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/v7/iso/keyboard.json b/keyboards/keychron/v7/iso/keyboard.json
index 0022222635..ec4cd06e6b 100644
--- a/keyboards/keychron/v7/iso/keyboard.json
+++ b/keyboards/keychron/v7/iso/keyboard.json
@@ -10,8 +10,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/v8/ansi/keyboard.json b/keyboards/keychron/v8/ansi/keyboard.json
index 7827270228..392783e024 100644
--- a/keyboards/keychron/v8/ansi/keyboard.json
+++ b/keyboards/keychron/v8/ansi/keyboard.json
@@ -10,8 +10,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/v8/ansi_encoder/keyboard.json b/keyboards/keychron/v8/ansi_encoder/keyboard.json
index a5d84021d0..6d3257feec 100644
--- a/keyboards/keychron/v8/ansi_encoder/keyboard.json
+++ b/keyboards/keychron/v8/ansi_encoder/keyboard.json
@@ -10,8 +10,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"encoder": true,
"extrakey": true,
diff --git a/keyboards/keychron/v8/iso/keyboard.json b/keyboards/keychron/v8/iso/keyboard.json
index 89310111f5..0d10662a00 100644
--- a/keyboards/keychron/v8/iso/keyboard.json
+++ b/keyboards/keychron/v8/iso/keyboard.json
@@ -10,8 +10,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"extrakey": true,
"mousekey": true,
diff --git a/keyboards/keychron/v8/iso_encoder/keyboard.json b/keyboards/keychron/v8/iso_encoder/keyboard.json
index 2e50de7421..d446d213d4 100644
--- a/keyboards/keychron/v8/iso_encoder/keyboard.json
+++ b/keyboards/keychron/v8/iso_encoder/keyboard.json
@@ -10,8 +10,6 @@
},
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"dip_switch": true,
"encoder": true,
"extrakey": true,
diff --git a/keyboards/keychron/x0/board.h b/keyboards/keychron/x0/board.h
new file mode 100644
index 0000000000..55dd9bf2d2
--- /dev/null
+++ b/keyboards/keychron/x0/board.h
@@ -0,0 +1,8 @@
+// Copyright 2023 @ Keychron(https://www.keychron.com)
+// SPDX-License-Identifier: GPL-2.0-or-later
+#pragma once
+
+#include_next <board.h>
+
+#undef STM32_HSECLK
+#define STM32_HSECLK 16000000U
diff --git a/keyboards/keychron/x0/config.h b/keyboards/keychron/x0/config.h
new file mode 100644
index 0000000000..1a2a4e42a3
--- /dev/null
+++ b/keyboards/keychron/x0/config.h
@@ -0,0 +1,23 @@
+/* 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
+
+/* I2C Driver Configuration */
+#define I2C1_SCL_PIN B8
+#define I2C1_SDA_PIN B9
+#define I2C1_CLOCK_SPEED 400000
+#define I2C1_DUTY_CYCLE FAST_DUTY_CYCLE_2
diff --git a/keyboards/keychron/x0/halconf.h b/keyboards/keychron/x0/halconf.h
new file mode 100644
index 0000000000..41bddcb279
--- /dev/null
+++ b/keyboards/keychron/x0/halconf.h
@@ -0,0 +1,21 @@
+/* Copyright 2020 QMK
+ *
+ * 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
+
+#define HAL_USE_I2C TRUE
+
+#include_next <halconf.h>
diff --git a/keyboards/keychron/x0/info.json b/keyboards/keychron/x0/info.json
new file mode 100644
index 0000000000..7e2e512ef4
--- /dev/null
+++ b/keyboards/keychron/x0/info.json
@@ -0,0 +1,73 @@
+{
+ "manufacturer": "Keychron",
+ "keyboard_name": "Lemokey X0",
+ "maintainer": "lalalademaxiya1",
+ "bootloader": "stm32-dfu",
+ "diode_direction": "COL2ROW",
+ "eeprom": {
+ "wear_leveling": {
+ "backing_size": 4096
+ }
+ },
+ "features": {
+ "bootmagic": true,
+ "extrakey": true,
+ "mousekey": true,
+ "nkro": true
+ },
+ "indicators": {
+ "caps_lock": "A3"
+ },
+ "matrix_pins": {
+ "cols": ["C6", "C7", "C8", "A14", "A15", "C10", "C11"],
+ "rows": ["C12", "D2", "B3", "B4", "B5", "B6"]
+ },
+ "processor": "STM32F401",
+ "url": "https://www.lemokey.com/products/lemokey-x0-qmk-wired-mechanical-gaming-keypad",
+ "usb": {
+ "device_version": "1.1.0",
+ "pid": "0x0200",
+ "vid": "0x362D"
+ },
+ "layouts": {
+ "LAYOUT": {
+ "layout": [
+ {"matrix": [0, 0], "x": 0, "y": 0},
+ {"matrix": [0, 1], "x": 2, "y": 0},
+ {"matrix": [0, 2], "x": 3, "y": 0},
+ {"matrix": [0, 3], "x": 4, "y": 0},
+ {"matrix": [0, 4], "x": 5, "y": 0},
+ {"matrix": [0, 5], "x": 6, "y": 0},
+ {"matrix": [1, 0], "x": 0, "y": 1.25},
+ {"matrix": [1, 1], "x": 1, "y": 1.25},
+ {"matrix": [1, 2], "x": 2, "y": 1.25},
+ {"matrix": [1, 3], "x": 3, "y": 1.25},
+ {"matrix": [1, 4], "x": 4, "y": 1.25},
+ {"matrix": [1, 5], "x": 5, "y": 1.25},
+ {"matrix": [1, 6], "x": 6, "y": 1.25},
+ {"matrix": [2, 0], "x": 0, "y": 2.25, "w": 1.5},
+ {"matrix": [2, 1], "x": 1.5, "y": 2.25},
+ {"matrix": [2, 2], "x": 2.5, "y": 2.25},
+ {"matrix": [2, 3], "x": 3.5, "y": 2.25},
+ {"matrix": [2, 4], "x": 4.5, "y": 2.25},
+ {"matrix": [2, 5], "x": 5.5, "y": 2.25, "w": 1.5},
+ {"matrix": [3, 0], "x": 0, "y": 3.25, "w": 1.75},
+ {"matrix": [3, 1], "x": 1.75, "y": 3.25},
+ {"matrix": [3, 2], "x": 2.75, "y": 3.25},
+ {"matrix": [3, 3], "x": 3.75, "y": 3.25},
+ {"matrix": [3, 4], "x": 4.75, "y": 3.25},
+ {"matrix": [3, 5], "x": 5.75, "y": 3.25, "w": 1.25},
+ {"matrix": [4, 0], "x": 0, "y": 4.25, "w": 2.25},
+ {"matrix": [4, 2], "x": 2.25, "y": 4.25},
+ {"matrix": [4, 3], "x": 3.25, "y": 4.25},
+ {"matrix": [4, 4], "x": 4.25, "y": 4.25},
+ {"matrix": [4, 5], "x": 5.25, "y": 4.25, "w": 1.75},
+ {"matrix": [5, 0], "x": 0, "y": 5.25, "w": 1.5},
+ {"matrix": [5, 2], "x": 2.75, "y": 5.25},
+ {"matrix": [5, 3], "x": 3.75, "y": 5.25},
+ {"matrix": [5, 4], "x": 4.75, "y": 5.25},
+ {"matrix": [5, 5], "x": 6, "y": 5.25}
+ ]
+ }
+ }
+}
diff --git a/keyboards/keychron/x0/mcuconf.h b/keyboards/keychron/x0/mcuconf.h
new file mode 100644
index 0000000000..bb608cec27
--- /dev/null
+++ b/keyboards/keychron/x0/mcuconf.h
@@ -0,0 +1,25 @@
+/* Copyright 2020 QMK
+ *
+ * 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
+
+#include_next <mcuconf.h>
+
+#undef STM32_PLLM_VALUE
+#define STM32_PLLM_VALUE 8
+
+#undef STM32_I2C_USE_I2C1
+#define STM32_I2C_USE_I2C1 TRUE
diff --git a/keyboards/keychron/x0/readme.md b/keyboards/keychron/x0/readme.md
new file mode 100644
index 0000000000..d08c3abe7e
--- /dev/null
+++ b/keyboards/keychron/x0/readme.md
@@ -0,0 +1,23 @@
+# Lemokey X0
+
+![Lemokey X0](https://i.imgur.com/ntROq41.jpeg)
+
+A one-handed gaming keypad.
+
+* Keyboard Maintainer: [Keychron](https://github.com/keychron)
+* Hardware Supported: Lemokey X0
+* Hardware Availability: [Keychron](https://www.lemokey.com/products/lemokey-x0-qmk-wired-mechanical-gaming-keypad)
+
+Make example for this keyboard (after setting up your build environment):
+
+ make keychron/x0/red:default
+
+Flashing example for this keyboard:
+
+ make keychron/x0/red:default:flash
+
+See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
+
+## Bootloader
+
+To enter the bootloader, hold down the key located at **K00**, labelled and commonly programmed as **Esc**, while plugging in the keyboard.
diff --git a/keyboards/keychron/x0/red/config.h b/keyboards/keychron/x0/red/config.h
new file mode 100644
index 0000000000..067266830f
--- /dev/null
+++ b/keyboards/keychron/x0/red/config.h
@@ -0,0 +1,25 @@
+/* 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 LED_MATRIX_ENABLE
+# define SNLED27351_I2C_ADDRESS_1 SNLED27351_I2C_ADDRESS_GND
+
+# define SNLED27351_PHASE_CHANNEL SNLED27351_SCAN_PHASE_6_CHANNEL
+# define SNLED27351_CURRENT_TUNE \
+ { 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60 }
+#endif
diff --git a/keyboards/keychron/x0/red/keyboard.json b/keyboards/keychron/x0/red/keyboard.json
new file mode 100644
index 0000000000..f591a607eb
--- /dev/null
+++ b/keyboards/keychron/x0/red/keyboard.json
@@ -0,0 +1,60 @@
+{
+ "features": {
+ "led_matrix": true
+ },
+ "led_matrix": {
+ "animations": {
+ "band_pinwheel": true,
+ "band_spiral": true,
+ "breathing": true,
+ "cycle_left_right": true,
+ "cycle_out_in": true,
+ "cycle_up_down": true,
+ "dual_beacon": true,
+ "solid_reactive_multinexus": true,
+ "solid_reactive_multiwide": true,
+ "solid_reactive_simple": true,
+ "solid_splash": true,
+ "wave_left_right": true,
+ "wave_up_down": true
+ },
+ "driver": "snled27351",
+ "layout": [
+ {"matrix": [0, 0], "x": 0, "y": 0, "flags": 1},
+ {"matrix": [0, 1], "x": 37, "y": 0, "flags": 1},
+ {"matrix": [0, 2], "x": 75, "y": 0, "flags": 1},
+ {"matrix": [0, 3], "x": 112, "y": 0, "flags": 1},
+ {"matrix": [0, 4], "x": 149, "y": 0, "flags": 1},
+ {"matrix": [0, 5], "x": 187, "y": 0, "flags": 1},
+ {"matrix": [1, 0], "x": 0, "y": 13, "flags": 1},
+ {"matrix": [1, 1], "x": 37, "y": 13, "flags": 4},
+ {"matrix": [1, 2], "x": 75, "y": 13, "flags": 4},
+ {"matrix": [1, 3], "x": 112, "y": 13, "flags": 4},
+ {"matrix": [1, 4], "x": 149, "y": 13, "flags": 4},
+ {"matrix": [1, 5], "x": 187, "y": 13, "flags": 4},
+ {"matrix": [1, 6], "x": 224, "y": 13, "flags": 4},
+ {"matrix": [2, 0], "x": 0, "y": 26, "flags": 1},
+ {"matrix": [2, 1], "x": 37, "y": 26, "flags": 4},
+ {"matrix": [2, 2], "x": 75, "y": 26, "flags": 4},
+ {"matrix": [2, 3], "x": 112, "y": 26, "flags": 4},
+ {"matrix": [2, 4], "x": 149, "y": 26, "flags": 4},
+ {"matrix": [2, 5], "x": 187, "y": 26, "flags": 4},
+ {"matrix": [3, 0], "x": 0, "y": 38, "flags": 1},
+ {"matrix": [3, 1], "x": 37, "y": 38, "flags": 4},
+ {"matrix": [3, 2], "x": 75, "y": 38, "flags": 4},
+ {"matrix": [3, 3], "x": 112, "y": 38, "flags": 4},
+ {"matrix": [3, 4], "x": 149, "y": 38, "flags": 4},
+ {"matrix": [3, 5], "x": 187, "y": 38, "flags": 4},
+ {"matrix": [4, 0], "x": 0, "y": 51, "flags": 1},
+ {"matrix": [4, 2], "x": 75, "y": 51, "flags": 4},
+ {"matrix": [4, 3], "x": 112, "y": 51, "flags": 4},
+ {"matrix": [4, 4], "x": 149, "y": 51, "flags": 4},
+ {"matrix": [4, 5], "x": 187, "y": 51, "flags": 4},
+ {"matrix": [5, 0], "x": 0, "y": 64, "flags": 1},
+ {"matrix": [5, 2], "x": 75, "y": 64, "flags": 1},
+ {"matrix": [5, 3], "x": 112, "y": 64, "flags": 1},
+ {"matrix": [5, 4], "x": 149, "y": 64, "flags": 1}
+ ],
+ "sleep": true
+ }
+}
diff --git a/keyboards/keychron/x0/red/keymaps/default/keymap.c b/keyboards/keychron/x0/red/keymaps/default/keymap.c
new file mode 100644
index 0000000000..4d04c09d9b
--- /dev/null
+++ b/keyboards/keychron/x0/red/keymaps/default/keymap.c
@@ -0,0 +1,41 @@
+/* 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/>.
+ */
+
+#include QMK_KEYBOARD_H
+
+enum layers {
+ WIN_BASE,
+ WIN_FN,
+};
+
+// clang-format off
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [WIN_BASE] = LAYOUT(
+ KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5,
+ KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6,
+ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T,
+ KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G,
+ KC_LSFT, KC_Z, KC_X, KC_C, KC_V,
+ KC_LCTL, KC_LALT, MO(WIN_FN), MO(WIN_FN), KC_SPC),
+
+ [WIN_FN] = LAYOUT(
+ _______, KC_BRID, KC_BRIU, LGUI(KC_TAB), LGUI(KC_E), _______,
+ _______, _______, _______, _______, _______, _______, _______,
+ LM_TOGG, LM_PREV, LM_BRIU, LM_NEXT, _______, _______,
+ _______, LM_SPDD, LM_BRID, LM_SPDU, _______, _______,
+ _______, _______, _______, _______, NK_TOGG,
+ _______, _______, _______, _______, _______),
+};
diff --git a/keyboards/keychron/x0/red/red.c b/keyboards/keychron/x0/red/red.c
new file mode 100644
index 0000000000..9499a09d8b
--- /dev/null
+++ b/keyboards/keychron/x0/red/red.c
@@ -0,0 +1,61 @@
+/* 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/>.
+ */
+
+#include "quantum.h"
+
+#ifdef LED_MATRIX_ENABLE
+// clang-format off
+const snled27351_led_t PROGMEM g_snled27351_leds[LED_MATRIX_LED_COUNT] = {
+/* Refer to SNLED27351 manual for these locations
+ * driver
+ * | LED address
+ * | | */
+ {0, CB6_CA1 },
+ {0, CB6_CA2 },
+ {0, CB6_CA3 },
+ {0, CB6_CA4 },
+ {0, CB6_CA5 },
+ {0, CB6_CA6 },
+ {0, CB5_CA1 },
+ {0, CB5_CA2 },
+ {0, CB5_CA3 },
+ {0, CB5_CA4 },
+ {0, CB5_CA5 },
+ {0, CB5_CA6 },
+ {0, CB5_CA7 },
+ {0, CB4_CA1 },
+ {0, CB4_CA2 },
+ {0, CB4_CA3 },
+ {0, CB4_CA4 },
+ {0, CB4_CA5 },
+ {0, CB4_CA6 },
+ {0, CB3_CA1 },
+ {0, CB3_CA2 },
+ {0, CB3_CA3 },
+ {0, CB3_CA4 },
+ {0, CB3_CA5 },
+ {0, CB3_CA6 },
+ {0, CB2_CA1 },
+ {0, CB2_CA3 },
+ {0, CB2_CA4 },
+ {0, CB2_CA5 },
+ {0, CB2_CA6 },
+ {0, CB1_CA1 },
+ {0, CB1_CA3 },
+ {0, CB1_CA4 },
+ {0, CB1_CA5 },
+};
+#endif