Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Keychron boards - Part 1 (redo) #21406

Closed
wants to merge 33 commits into from
Closed
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
bda7861
Update Keychron boards Q0 to Q4
adophoxia Jun 29, 2023
6aa6e19
Move `DYNAMIC_KEYMAP_LAYER_COUNT` to `info.json`
adophoxia Jun 30, 2023
460a411
Merge branch 'develop' of https://github.com/qmk/qmk_firmware into kc…
adophoxia Jul 2, 2023
8d75b70
Clean-up and restructuring
adophoxia Jul 2, 2023
8da9be5
Merge branch 'develop' of https://github.com/qmk/qmk_firmware into kc…
adophoxia Jul 2, 2023
0b65876
Add back comment block for RGB Matrix effects
adophoxia Jul 8, 2023
cf5a130
Move back encoder config to `rev_0131/config.h`
adophoxia Jul 8, 2023
79b0f02
Merge branch 'develop' of https://github.com/qmk/qmk_firmware into kc…
adophoxia Jul 8, 2023
4a84d62
Merge branch 'kc-update-pt1-redo' of https://github.com/adophoxia/qmk…
adophoxia Jul 8, 2023
4c57c4c
Update keyboards/keychron/q0/rev_0131/readme.md
adophoxia Jul 11, 2023
2e2cfee
Update keyboards/keychron/q1v1/readme.md
adophoxia Jul 11, 2023
2636791
Update keyboards/keychron/q3/readme.md
adophoxia Jul 11, 2023
9c82f33
Remove bootloadhid references from `readme.md`
adophoxia Jul 11, 2023
af42f5c
Merge branch 'develop' of https://github.com/qmk/qmk_firmware into kc…
adophoxia Jul 11, 2023
de211bf
Merge branch 'develop' of https://github.com/qmk/qmk_firmware into kc…
adophoxia Jul 18, 2023
a47428a
Merge branch 'kc-update-pt1-redo' of https://github.com/adophoxia/qmk…
adophoxia Jul 18, 2023
c843052
Merge branch 'develop' of https://github.com/qmk/qmk_firmware into kc…
adophoxia Jul 19, 2023
48c642e
Merge branch 'kc-update-pt1-redo' of https://github.com/adophoxia/qmk…
adophoxia Jul 19, 2023
b2877ba
Merge branch 'develop' of https://github.com/qmk/qmk_firmware into kc…
adophoxia Jul 21, 2023
7c30d89
Merge branch 'kc-update-pt1-redo' of https://github.com/adophoxia/qmk…
adophoxia Jul 21, 2023
a1db852
Merge branch 'develop' of https://github.com/qmk/qmk_firmware into kc…
adophoxia Jul 25, 2023
481a64f
Update keyboards/keychron/q0/readme.md
adophoxia Jul 26, 2023
574b5d2
Remove `g_led_config` from `q1v1/iso/iso.c`
adophoxia Jul 26, 2023
f757259
Merge branch 'develop' of https://github.com/qmk/qmk_firmware into kc…
adophoxia Jul 26, 2023
715567a
Merge branch 'kc-update-pt1-redo' of https://github.com/adophoxia/qmk…
adophoxia Jul 26, 2023
1562d6b
Rename "encoder" to "knob" for simplicity sake
adophoxia Jul 26, 2023
3c0eab2
Merge branch 'develop' of https://github.com/qmk/qmk_firmware into kc…
adophoxia Jul 26, 2023
328877c
Revert "Rename "encoder" to "knob" for simplicity sake"
adophoxia Jul 26, 2023
09956fc
Merge branch 'develop' of https://github.com/qmk/qmk_firmware into kc…
adophoxia Jul 27, 2023
83273a9
Merge branch 'kc-update-pt1-redo' of https://github.com/adophoxia/qmk…
adophoxia Jul 27, 2023
2075ba7
Merge branch 'develop' of https://github.com/qmk/qmk_firmware into kc…
adophoxia Aug 2, 2023
c9631d3
Revert to previous custom matrix configuration
adophoxia Aug 3, 2023
bc00972
Merge branch 'develop' of https://github.com/qmk/qmk_firmware into kc…
adophoxia Aug 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions keyboards/keychron/q0/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@
#define WEAR_LEVELING_LOGICAL_SIZE 2048
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)

#define RGB_MATRIX_KEYPRESSES
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
// RGB Matrix Animation modes. Explicitly enabled
// For full list of effects, see:
// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#define RGB_MATRIX_KEYPRESSES
50 changes: 50 additions & 0 deletions keyboards/keychron/q0/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"manufacturer": "Keychron",
"maintainer": "lalalademaxiya1",
"bootloader": "stm32-dfu",
"diode_direction": "ROW2COL",
"features": {
"audio": false,
"backlight": false,
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true,
"rgb_matrix": true,
"rgblight": false
},
"processor": "STM32L432",
"rgb_matrix": {
"animations": {
"band_spiral_val": true,
"breathing": true,
"cycle_all": true,
"cycle_left_right": true,
"cycle_out_in": true,
"cycle_out_in_dual": true,
"cycle_pinwheel": true,
"cycle_spiral": true,
"cycle_up_down": true,
"digital_rain": true,
"dual_beacon": true,
"jellybean_raindrops": true,
"pixel_rain": true,
"rainbow_beacon": true,
"rainbow_moving_chevron": true,
"solid_reactive_multinexus": true,
"solid_reactive_multiwide": true,
"solid_reactive_simple": true,
"solid_splash": true,
"splash": true,
"typing_heatmap": true
},
"driver": "CKLED2001"
},
"url": "https://github.com/Keychron",
"usb": {
"force_nkro": true,
"vid": "0x3434"
}
}
6 changes: 5 additions & 1 deletion keyboards/keychron/q0/readme.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
# Keychron Q0

![Keychron Q0](https://i.imgur.com/cLbEiZ0.jpg)
adophoxia marked this conversation as resolved.
Show resolved Hide resolved

A customizable number keypad.

* Keyboard Maintainer: [Keychron](https://github.com/keychron)
* Hardware Supported: Keychron Q0
* Hardware Availability: [Keychron](https://www.keychron.com)
* Hardware Availability: [Keychron Q0 QMK Custom Number Pad](https://www.keychron.com/products/keychron-q0-qmk-custom-number-pad)

Make example for this keyboard (after setting up your build environment):

make keychron/q0/rev_0130:default
make keychron/q0/rev_0131:default

Flashing example for this keyboard:

make keychron/q0/rev_0130:default:flash
make keychron/q0/rev_0131:default:flash

**Reset Key**: Hold down the key located at *K00*, commonly programmed as *Esc* while plugging in the keyboard.

Expand Down
3 changes: 1 addition & 2 deletions keyboards/keychron/q0/rev_0130/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
#define DRIVER_ADDR_1 0b1110100

/* RGB Matrix Configuration */
#define DRIVER_1_LED_TOTAL 21
#define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL
#define RGB_MATRIX_LED_COUNT 21

/* Enable num-lock LED */
#define NUM_LOCK_LED_INDEX 4
54 changes: 5 additions & 49 deletions keyboards/keychron/q0/rev_0130/info.json
Original file line number Diff line number Diff line change
@@ -1,58 +1,10 @@
{
"keyboard_name": "Q0",
"manufacturer": "Keychron",
"url": "https://github.com/Keychron",
"maintainer": "lalalademaxiya1",
"usb": {
"vid": "0x3434",
"pid": "0x0130",
"device_version": "1.0.2",
"force_nkro": true
},
"matrix_pins": {
"cols": ["A5", "A6", "A7", "B0"],
"rows": ["B5", "B4", "B3", "A15", "A14", "A13"]
},
"features": {
"audio": false,
"backlight": false,
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true,
"rgb_matrix": true,
"rgblight": false
},
"diode_direction": "ROW2COL",
"processor": "STM32L432",
"bootloader": "stm32-dfu",
"rgb_matrix": {
"driver": "CKLED2001",
"animations": {
"band_spiral_val": true,
"breathing": true,
"cycle_all": true,
"cycle_left_right": true,
"cycle_up_down": true,
"rainbow_moving_chevron": true,
"cycle_out_in": true,
"cycle_out_in_dual": true,
"cycle_pinwheel": true,
"cycle_spiral": true,
"dual_beacon": true,
"rainbow_beacon": true,
"jellybean_raindrops": true,
"pixel_rain": true,
"typing_heatmap": true,
"digital_rain": true,
"solid_reactive_simple": true,
"solid_reactive_multiwide": true,
"solid_reactive_multinexus": true,
"splash": true,
"solid_splash": true
},
"center_point": [56, 16],
"layout": [
{"flags": 1, "matrix": [0, 0], "x": 0, "y": 0},
Expand Down Expand Up @@ -83,6 +35,10 @@
{"flags": 1, "matrix": [4, 3], "x": 112, "y": 29}
]
},
"usb": {
"device_version": "1.0.2",
"pid": "0x0130"
},
"layouts": {
"LAYOUT_numpad_6x4": {
"layout": [
Expand Down Expand Up @@ -115,4 +71,4 @@
]
}
}
}
}
1 change: 1 addition & 0 deletions keyboards/keychron/q0/rev_0130/rev_0130.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
{0, L_1, J_1, K_1}, // 19
{0, C_2, A_2, B_2}, // 20
};

#endif // RGB_MATRIX_ENABLE
4 changes: 1 addition & 3 deletions keyboards/keychron/q0/rev_0130/rules.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = embedded_flash

# This file intentionally left blank
9 changes: 4 additions & 5 deletions keyboards/keychron/q0/rev_0131/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@
#define DRIVER_ADDR_1 0b1110111

/* RGB Matrix Configuration */
#define DRIVER_1_LED_TOTAL 26
#define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL
#define RGB_MATRIX_LED_COUNT 26

/* Encoder Configuration*/
#define ENCODER_DEFAULT_POS 0x3

/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */
#define PHASE_CHANNEL MSKPHASE_9CHANNEL

/* Enable num-lock LED */
#define NUM_LOCK_LED_INDEX 5

/* Encoder Configuration */
#define ENCODER_DEFAULT_POS 0x3
66 changes: 11 additions & 55 deletions keyboards/keychron/q0/rev_0131/info.json
Original file line number Diff line number Diff line change
@@ -1,67 +1,19 @@
{
"keyboard_name": "Keychron Q0 Plus",
"manufacturer": "Keychron",
"url": "https://github.com/Keychron",
"maintainer": "lalalademaxiya1",
"usb": {
"vid": "0x3434",
"pid": "0x0131",
"device_version": "1.0.0",
"force_nkro": true
},
"matrix_pins": {
"cols": ["C14", "C15", "A0", "A1", "A2"],
"rows": ["B5", "B4", "B3", "A15", "A14", "A13"]
},
"features": {
"audio": false,
"backlight": false,
"bootmagic": true,
"command": false,
"console": false,
"encoder": true,
"extrakey": true,
"mousekey": true,
"nkro": true,
"rgb_matrix": true,
"rgblight": false
"bootmagic": {
"matrix": [0, 1]
},
"diode_direction": "ROW2COL",
"encoder": {
"enabled": true,
"rotary": [
{"pin_a": "A3", "pin_b": "A4"}
]
},
"bootmagic": {
"matrix": [0, 1]
"matrix_pins": {
"cols": ["C14", "C15", "A0", "A1", "A2"],
"rows": ["B5", "B4", "B3", "A15", "A14", "A13"]
},
"processor": "STM32L432",
"bootloader": "stm32-dfu",
"rgb_matrix": {
"driver": "CKLED2001",
"animations": {
"band_spiral_val": true,
"breathing": true,
"cycle_all": true,
"cycle_left_right": true,
"cycle_up_down": true,
"rainbow_moving_chevron": true,
"cycle_out_in": true,
"cycle_out_in_dual": true,
"cycle_pinwheel": true,
"cycle_spiral": true,
"dual_beacon": true,
"rainbow_beacon": true,
"jellybean_raindrops": true,
"pixel_rain": true,
"typing_heatmap": true,
"digital_rain": true,
"solid_reactive_simple": true,
"solid_reactive_multiwide": true,
"solid_reactive_multinexus": true,
"splash": true,
"solid_splash": true
},
"layout": [
{"flags": 1, "matrix": [0, 1], "x": 56, "y": 0},
{"flags": 1, "matrix": [0, 2], "x": 112, "y": 0},
Expand Down Expand Up @@ -96,6 +48,10 @@
{"flags": 1, "matrix": [5, 3], "x": 168, "y": 64}
]
},
"usb": {
"device_version": "1.0.0",
"pid": "0x0131"
},
"layouts": {
"LAYOUT_numpad_6x5": {
"layout": [
Expand Down Expand Up @@ -134,4 +90,4 @@
]
}
}
}
}
16 changes: 11 additions & 5 deletions keyboards/keychron/q0/rev_0131/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# The enhanced version with encoder of the Keychron Q0
# Keychron Q0 Plus

- The name of this keyboard is "Q0 Plus"
- Enable EC11 rotary encoder
- Turn clockwise to increase volume and turn anti-clockwise to decrease volume
- Press the knob button to mute
![Keychron Q0 Plus](https://i.imgur.com/EDbfVVOh.jpg)

* Keyboard Maintainer: [Keychron](https://github.com/keychron)
* Hardware Supported: Keychron Q0 Plus
* Hardware Availability: [Keychron Q0 Plus QMK Custom Number Pad](https://www.keychron.com/products/keychron-q0-plus-qmk-custom-number-pad)

1. The name of this keyboard is "Keychron Q0 Plus"
2. Enable EC11 rotary encoder
3. Turn clockwise to increase volume and turn anti-clockwise to decrease volume
4. Press the knob button to mute
1 change: 1 addition & 0 deletions keyboards/keychron/q0/rev_0131/rev_0131.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
{0, F_7, D_7, E_7},
{0, F_9, D_9, E_9},
};

#endif // RGB_MATRIX_ENABLE
4 changes: 1 addition & 3 deletions keyboards/keychron/q0/rev_0131/rules.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = embedded_flash

# This file intentionally left blank
Loading