Update Keychron Q9

This commit is contained in:
lalalademaxiya1 2023-03-17 15:48:05 +08:00
parent 4334182371
commit 582baae0a1
11 changed files with 43 additions and 25 deletions

View File

@ -21,7 +21,7 @@
// clang-format off
const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
/* Refer to CKLED manual for these locations
/* Refer to CKLED2001 manual for these locations
* driver
* | R location
* | | G location
@ -106,7 +106,7 @@ led_config_t g_led_config = {
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
8, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1,
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1,
1, 1, 1, 4, 1, 1, 1, 1, 1, 1,
1, 1, 1, 4, 1, 4, 4, 1, 1, 1,
}
};

View File

@ -8,6 +8,11 @@
"pid": "0x0190",
"device_version": "1.0.4"
},
"matrix_pins": {
"cols": ["A10", "A9", "A8", "B1", "B0", "A7", "A6", "A5", "A4", "A3", "A2", "A1", "A0", "C15", "C14"],
"rows": ["B3", "A15", "A14", "A13"]
},
"diode_direction": "ROW2COL",
"processor": "STM32L432",
"bootloader": "stm32-dfu",
"layouts": {

View File

@ -21,7 +21,7 @@
// clang-format off
const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
/* Refer to CKLED manual for these locations
/* Refer to CKLED2001 manual for these locations
* driver
* | R location
* | | G location
@ -106,7 +106,7 @@ led_config_t g_led_config = {
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
8, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1,
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 4, 4, 1, 1, 1,
}
};

View File

@ -8,6 +8,11 @@
"pid": "0x0191",
"device_version": "1.0.4"
},
"matrix_pins": {
"cols": ["A10", "A9", "A8", "B1", "B0", "A7", "A6", "A5", "A4", "A3", "A2", "A1", "A0", "C15", "C14"],
"rows": ["B3", "A15", "A14", "A13"]
},
"diode_direction": "ROW2COL",
"encoder": {
"rotary": [
{"pin_a": "B4", "pin_b": "B5"}

View File

@ -16,15 +16,6 @@
#pragma once
/* key matrix pins */
#define MATRIX_ROW_PINS \
{ B3, A15, A14, A13 }
#define MATRIX_COL_PINS \
{ A10, A9, A8, B1, B0, A7, A6, A5, A4, A3, A2, A1, A0, C15, C14 }
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION ROW2COL
/* Disable DIP switch in matrix data */
#define MATRIX_MASKED
@ -44,7 +35,7 @@
#define I2C1_TIMINGR_SCLDEL 3U
#define I2C1_TIMINGR_SDADEL 0U
#define I2C1_TIMINGR_SCLH 15U
#define I2C1_TIMINGR_SCLL 30U
#define I2C1_TIMINGR_SCLL 51U
#define CKLED2001_CURRENT_TUNE \
{ 0xF8, 0xF8, 0x70, 0xF8, 0xF8, 0x70, 0xF8, 0xF8, 0x70, 0xF8, 0xF8, 0x70 }

View File

@ -17,6 +17,5 @@
#pragma once
#define HAL_USE_I2C TRUE
#define PAL_USE_CALLBACKS FALSE
#include_next <halconf.h>

View File

@ -8,6 +8,11 @@
"pid": "0x0192",
"device_version": "1.0.1"
},
"matrix_pins": {
"cols": ["A10", "A9", "A8", "B1", "B0", "A7", "A6", "A5", "A4", "A3", "A2", "A1", "A0", "C15", "C14"],
"rows": ["B3", "A15", "A14", "A13"]
},
"diode_direction": "ROW2COL",
"processor": "STM32L432",
"bootloader": "stm32-dfu",
"layouts": {

View File

@ -21,12 +21,12 @@
// clang-format off
const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
/* Refer to CKLED manual for these locations
/* Refer to CKLED2001 manual for these locations
* driver
* | R location
* | | G location
* | | | B location
* | | | | */
* | | G location
* | | | B location
* | | | | */
{0, L_16, J_16, K_16}, // Tab
{0, L_15, J_15, K_15}, // Q
{0, L_14, J_14, K_14}, // W
@ -107,7 +107,7 @@ led_config_t g_led_config = {
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
8, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1,
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1,
1, 1, 1, 4, 1, 1, 1, 1, 1, 1,
1, 1, 1, 4, 1, 4, 4, 1, 1, 1,
}
};

View File

@ -8,6 +8,11 @@
"pid": "0x0193",
"device_version": "1.0.1"
},
"matrix_pins": {
"cols": ["A10", "A9", "A8", "B1", "B0", "A7", "A6", "A5", "A4", "A3", "A2", "A1", "A0", "C15", "C14"],
"rows": ["B3", "A15", "A14", "A13"]
},
"diode_direction": "ROW2COL",
"encoder": {
"rotary": [
{"pin_a": "B4", "pin_b": "B5"}

View File

@ -21,12 +21,12 @@
// clang-format off
const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
/* Refer to CKLED manual for these locations
/* Refer to CKLED2001 manual for these locations
* driver
* | R location
* | | G location
* | | | B location
* | | | | */
* | | G location
* | | | B location
* | | | | */
{0, L_16, J_16, K_16}, // Tab
{0, L_15, J_15, K_15}, // Q
{0, L_14, J_14, K_14}, // W
@ -107,7 +107,7 @@ led_config_t g_led_config = {
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
8, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1,
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1,
1, 1, 1, 4, 1, 1, 1, 1, 1, 1,
1, 1, 1, 4, 1, 4, 4, 1, 1, 1,
}
};

View File

@ -1,5 +1,7 @@
# Keychron Q9
![Keychron Q9](https://i.imgur.com/G8xJ4TR.jpg[/img])
A customizable 40% keyboard.
* Keyboard Maintainer: [Keychron](https://github.com/keychron)
@ -9,10 +11,16 @@ A customizable 40% keyboard.
Make example for this keyboard (after setting up your build environment):
make keychron/q9/ansi:default
make keychron/q9/ansi_encoder:default
make keychron/q9/iso:default
make keychron/q9/iso_enocder:default
Flashing example for this keyboard ([after setting up the bootloadHID flashing environment](https://docs.qmk.fm/#/flashing_bootloadhid))
make keychron/q9/ansi:default:flash
make keychron/q9/ansi:default:flash
make keychron/q9/iso:default:flash
make keychron/q9/iso_encoder:default:flash
**Reset Key**: Hold down the key located at *K00*, commonly programmed as *Esc* while plugging in the keyboard.