Update Keychron V8

This commit is contained in:
lalalademaxiya1 2023-03-16 16:00:50 +08:00
parent b09b9e4575
commit faca15c40c
14 changed files with 37 additions and 27 deletions

View File

@ -21,7 +21,7 @@
// clang-format off
const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
/* Refer to IS31 manual for these locations
/* Refer to CKLED2001 manual for these locations
* driver
* | R location
* | | G location

View File

@ -16,15 +16,6 @@
#pragma once
/* key matrix pins */
#define MATRIX_ROW_PINS \
{ B5, B4, B3, A15, A14, A13 }
#define MATRIX_COL_PINS \
{ C14, C15, A0, A1, A2, A3, A4, A5, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN }
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION ROW2COL
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111

View File

@ -21,7 +21,7 @@
// clang-format off
const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
/* Refer to IS31 manual for these locations
/* Refer to CKLED2001 manual for these locations
* driver
* | R location
* | | G location

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
@ -128,7 +128,7 @@ led_config_t g_led_config = {
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
9, 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, 4, 1, 1, 1, 1,
1, 1, 1, 4, 4, 4, 4, 1, 1, 1, 1,
}
};

View File

@ -8,6 +8,11 @@
"pid": "0x0380",
"device_version": "1.0.1"
},
"matrix_pins": {
"cols": ["C14", "C15", "A0", "A1", "A2", "A3", "A4", "A5", "A6", "A7", "B0", "B1", "A8", "A9", "H3"],
"rows": ["B4", "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
@ -128,7 +128,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, 4, 1, 1,
1, 1, 1, 4, 1, 1, 4, 1, 1, 1, 1,
1, 1, 1, 4, 4, 4, 4, 1, 1, 1, 1,
}
};

View File

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

View File

@ -16,12 +16,6 @@
#pragma once
/* Key matrix pins */
#define MATRIX_ROW_PINS \
{ B4, B3, A15, A14, A13 }
#define MATRIX_COL_PINS \
{ C14, C15, A0, A1, A2, A3, A4, A5, A6, A7, B0, B1, A8, A9, H3 }
/* If uses PH3 with a stronger pull resistor then the following definition should be included */
// #define MATRIX_UNSELECT_DRIVE_HIGH

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,10 @@
"pid": "0x0382",
"device_version": "1.0.1"
},
"matrix_pins": {
"cols": ["C14", "C15", "A0", "A1", "A2", "A3", "A4", "A5", "A6", "A7", "B0", "B1", "A8", "A9", "H3"],
"rows": ["B4", "B3", "A15", "A14", "A13"]
},
"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
@ -128,7 +128,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, 4, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 4, 4, 4, 4, 1, 1, 1, 1,
}
};

View File

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

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
@ -128,7 +128,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, 4, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 4, 4, 4, 4, 1, 1, 1, 1,
}
};

View File

@ -1,18 +1,26 @@
# Keychron V8
![Keychron V8](https://imgur.com/mAqjVPR)
A customizable 65% and ergonomic keyboard.
* Keyboard Maintainer: [Keychron](https://github.com/keychron)
* Hardware Supported: Keychron V8
* Hardware Availability: [Keychron](https://www.keychron.com)
* Hardware Availability: [Keychron V8 (Alice Layout) QMK Custom Mechanical Keyboard](https://www.keychron.com/products/keychron-v8-alice-layout-qmk-custom-mechanical-keyboard)
Make example for this keyboard (after setting up your build environment):
make keychron/v8/ansi:default
make keychron/v8/ansi_encoder:default
make keychron/v8/iso:default
make keychron/v8/iso_encoder:default
Flashing example for this keyboard ([after setting up the bootloadHID flashing environment](https://docs.qmk.fm/#/flashing_bootloadhid))
make keychron/v8/ansi:default:flash
make keychron/v8/ansi_encoder:default:flash
make keychron/v8/iso:default:flash
make keychron/v8/iso_encoder:default:flash
**Reset Key**: Hold down the key located at *K00*, commonly programmed as *Esc* while plugging in the keyboard.