commit 5f33a251b32677cc2cbc71adf47b1e1969d15598 parent 70f0c279f97901f6f133285aef6dab6dac18fbc5 Author: adophoxia <100170946+adophoxia@users.noreply.github.com> Date: Wed, 4 Oct 2023 21:59:06 -0700 Update Keychron Q0 (#22068) Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Duncan Sutherland <dunk2k_2000@hotmail.com> Diffstat:
32 files changed, 307 insertions(+), 331 deletions(-)
diff --git a/data/mappings/keyboard_aliases.hjson b/data/mappings/keyboard_aliases.hjson @@ -890,6 +890,9 @@ "kelowna/rgb64": { "target": "weirdo/kelowna/rgb64" }, + "keychron/q0": { + "target": "keychron/q0/base" + }, "keychron/q1": { "target": "keychron/q1v1" } diff --git a/keyboards/keychron/q0/rev_0130/rev_0130.c b/keyboards/keychron/q0/base/base.c diff --git a/keyboards/keychron/q0/base/config.h b/keyboards/keychron/q0/base/config.h @@ -0,0 +1,27 @@ +/* Copyright 2022 @ 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 + +/* RGB Matrix Driver Configuration */ +#define SNLED27351_DRIVER_COUNT 1 +#define DRIVER_ADDR_1 SNLED27351_I2C_ADDRESS_GND + +/* RGB Matrix Configuration */ +#define RGB_MATRIX_LED_COUNT 21 + +/* Enable num-lock LED */ +#define NUM_LOCK_LED_INDEX 4 diff --git a/keyboards/keychron/q0/base/info.json b/keyboards/keychron/q0/base/info.json @@ -0,0 +1,75 @@ +{ + "keyboard_name": "Q0", + "usb": { + "pid": "0x0130", + "device_version": "1.0.2" + }, + "matrix_pins": { + "cols": ["A5", "A6", "A7", "B0"], + "rows": ["B5", "B4", "B3", "A15", "A14", "A13"] + }, + "rgb_matrix": { + "center_point": [56, 16], + "layout": [ + {"flags": 1, "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": 9, "matrix": [1, 0], "x": 0, "y": 6}, + {"flags": 4, "matrix": [1, 1], "x": 37, "y": 6}, + {"flags": 4, "matrix": [1, 2], "x": 75, "y": 6}, + {"flags": 4, "matrix": [1, 3], "x": 112, "y": 6}, + + {"flags": 4, "matrix": [2, 0], "x": 0, "y": 13}, + {"flags": 4, "matrix": [2, 1], "x": 37, "y": 13}, + {"flags": 4, "matrix": [2, 2], "x": 75, "y": 13}, + + {"flags": 4, "matrix": [3, 0], "x": 0, "y": 19}, + {"flags": 4, "matrix": [3, 1], "x": 37, "y": 19}, + {"flags": 4, "matrix": [3, 2], "x": 75, "y": 19}, + {"flags": 4, "matrix": [2, 3], "x": 112, "y": 16}, + + {"flags": 4, "matrix": [4, 0], "x": 0, "y": 25}, + {"flags": 4, "matrix": [4, 1], "x": 37, "y": 25}, + {"flags": 4, "matrix": [4, 2], "x": 75, "y": 25}, + + {"flags": 4, "matrix": [5, 0], "x": 18, "y": 32}, + {"flags": 4, "matrix": [5, 2], "x": 75, "y": 32}, + {"flags": 1, "matrix": [4, 3], "x": 112, "y": 29} + ] + }, + "community_layouts": ["numpad_6x4"], + "layouts": { + "LAYOUT_numpad_6x4": { + "layout": [ + {"matrix": [0, 0], "x": 0, "y": 0}, + {"matrix": [0, 1], "x": 1, "y": 0}, + {"matrix": [0, 2], "x": 2, "y": 0}, + {"matrix": [0, 3], "x": 3, "y": 0}, + + {"matrix": [1, 0], "x": 0, "y": 1}, + {"matrix": [1, 1], "x": 1, "y": 1}, + {"matrix": [1, 2], "x": 2, "y": 1}, + {"matrix": [1, 3], "x": 3, "y": 1}, + + {"matrix": [2, 0], "x": 0, "y": 2}, + {"matrix": [2, 1], "x": 1, "y": 2}, + {"matrix": [2, 2], "x": 2, "y": 2}, + + {"matrix": [3, 0], "x": 0, "y": 3}, + {"matrix": [3, 1], "x": 1, "y": 3}, + {"matrix": [3, 2], "x": 2, "y": 3}, + {"matrix": [2, 3], "x": 3, "y": 2, "h": 2}, + + {"matrix": [4, 0], "x": 0, "y": 4}, + {"matrix": [4, 1], "x": 1, "y": 4}, + {"matrix": [4, 2], "x": 2, "y": 4}, + + {"matrix": [5, 0], "x": 0, "y": 5, "w": 2}, + {"matrix": [5, 2], "x": 2, "y": 5}, + {"matrix": [4, 3], "x": 3, "y": 4, "h": 2} + ] + } + } +} diff --git a/keyboards/keychron/q0/rev_0130/keymaps/default/keymap.c b/keyboards/keychron/q0/base/keymaps/default/keymap.c diff --git a/keyboards/keychron/q0/rev_0130/keymaps/keychron/keymap.c b/keyboards/keychron/q0/base/keymaps/keychron/keymap.c diff --git a/keyboards/keychron/q0/rev_0130/keymaps/keychron/rules.mk b/keyboards/keychron/q0/base/keymaps/keychron/rules.mk diff --git a/keyboards/keychron/q0/rev_0130/keymaps/via/keymap.c b/keyboards/keychron/q0/base/keymaps/via/keymap.c diff --git a/keyboards/keychron/q0/rev_0130/keymaps/via/rules.mk b/keyboards/keychron/q0/base/keymaps/via/rules.mk diff --git a/keyboards/keychron/q0/rev_0130/readme.md b/keyboards/keychron/q0/base/readme.md diff --git a/keyboards/keychron/q0/base/rules.mk b/keyboards/keychron/q0/base/rules.mk @@ -0,0 +1 @@ +# This file intentionally left blank +\ No newline at end of file diff --git a/keyboards/keychron/q0/config.h b/keyboards/keychron/q0/config.h @@ -21,9 +21,5 @@ /* turn off effects when suspended */ #define RGB_DISABLE_WHEN_USB_SUSPENDED -/* EEPROM Driver Configuration */ -#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 \ No newline at end of file diff --git a/keyboards/keychron/q0/info.json b/keyboards/keychron/q0/info.json @@ -0,0 +1,52 @@ +{ + "manufacturer": "Keychron", + "maintainer": "lalalademaxiya1", + "bootloader": "stm32-dfu", + "diode_direction": "ROW2COL", + "eeprom": { + "wear_leveling": { + "backing_size": 4096 + } + }, + "features": { + "bootmagic": true, + "command": false, + "console": false, + "extrakey": true, + "mousekey": true, + "nkro": true, + "rgb_matrix": true + }, + "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": "snled27351" + }, + "url": "https://github.com/Keychron", + "usb": { + "force_nkro": true, + "vid": "0x3434" + } +} +\ No newline at end of file diff --git a/keyboards/keychron/q0/plus/config.h b/keyboards/keychron/q0/plus/config.h @@ -0,0 +1,32 @@ +/* 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 + +/* RGB Matrix Driver Configuration */ +#define SNLED27351_DRIVER_COUNT 1 +#define DRIVER_ADDR_1 SNLED27351_I2C_ADDRESS_VDDIO + +/* RGB Matrix Configuration */ +#define RGB_MATRIX_LED_COUNT 26 + +#define SNLED27351_PHASE_CHANNEL SNLED27351_MSKPHASE_9CHANNEL + +/* Encoder Configuration*/ +#define ENCODER_DEFAULT_POS 0x3 + +/* Enable num-lock LED */ +#define NUM_LOCK_LED_INDEX 5 diff --git a/keyboards/keychron/q0/plus/info.json b/keyboards/keychron/q0/plus/info.json @@ -0,0 +1,94 @@ +{ + "keyboard_name": "Keychron Q0 Plus", + "usb": { + "pid": "0x0131", + "device_version": "1.0.0" + }, + "matrix_pins": { + "cols": ["C14", "C15", "A0", "A1", "A2"], + "rows": ["B5", "B4", "B3", "A15", "A14", "A13"] + }, + "encoder": { + "enabled": true, + "rotary": [ + {"pin_a": "A3", "pin_b": "A4"} + ] + }, + "bootmagic": { + "matrix": [0, 1] + }, + "rgb_matrix": { + "layout": [ + {"flags": 1, "matrix": [0, 1], "x": 56, "y": 0}, + {"flags": 1, "matrix": [0, 2], "x": 112, "y": 0}, + {"flags": 1, "matrix": [0, 3], "x": 168, "y": 0}, + {"flags": 1, "matrix": [0, 4], "x": 224, "y": 0}, + + {"flags": 4, "matrix": [1, 0], "x": 0, "y": 15}, + {"flags": 8, "matrix": [1, 1], "x": 56, "y": 15}, + {"flags": 4, "matrix": [1, 2], "x": 112, "y": 15}, + {"flags": 4, "matrix": [1, 3], "x": 168, "y": 15}, + {"flags": 4, "matrix": [1, 4], "x": 224, "y": 15}, + + {"flags": 4, "matrix": [2, 0], "x": 0, "y": 27}, + {"flags": 4, "matrix": [2, 1], "x": 56, "y": 27}, + {"flags": 4, "matrix": [2, 2], "x": 112, "y": 27}, + {"flags": 4, "matrix": [2, 3], "x": 168, "y": 27}, + {"flags": 4, "matrix": [2, 4], "x": 224, "y": 34}, + + {"flags": 4, "matrix": [3, 0], "x": 0, "y": 40}, + {"flags": 4, "matrix": [3, 1], "x": 56, "y": 40}, + {"flags": 4, "matrix": [3, 2], "x": 112, "y": 40}, + {"flags": 4, "matrix": [3, 3], "x": 168, "y": 40}, + + {"flags": 4, "matrix": [4, 0], "x": 0, "y": 52}, + {"flags": 4, "matrix": [4, 1], "x": 56, "y": 52}, + {"flags": 4, "matrix": [4, 2], "x": 112, "y": 52}, + {"flags": 4, "matrix": [4, 3], "x": 168, "y": 52}, + {"flags": 4, "matrix": [4, 4], "x": 224, "y": 58}, + + {"flags": 4, "matrix": [5, 0], "x": 0, "y": 64}, + {"flags": 4, "matrix": [5, 1], "x": 84, "y": 64}, + {"flags": 1, "matrix": [5, 3], "x": 168, "y": 64} + ] + }, + "community_layouts": ["numpad_6x5"], + "layouts": { + "LAYOUT_numpad_6x5": { + "layout": [ + {"matrix": [0, 0], "x": 0, "y": 0}, + {"matrix": [0, 1], "x": 1.25, "y": 0}, + {"matrix": [0, 2], "x": 2.25, "y": 0}, + {"matrix": [0, 3], "x": 3.25, "y": 0}, + {"matrix": [0, 4], "x": 4.25, "y": 0}, + + {"matrix": [1, 0], "x": 0, "y": 1.25}, + {"matrix": [1, 1], "x": 1.25, "y": 1.25}, + {"matrix": [1, 2], "x": 2.25, "y": 1.25}, + {"matrix": [1, 3], "x": 3.25, "y": 1.25}, + {"matrix": [1, 4], "x": 4.25, "y": 1.25}, + + {"matrix": [2, 0], "x": 0, "y": 2.25}, + {"matrix": [2, 1], "x": 1.25, "y": 2.25}, + {"matrix": [2, 2], "x": 2.25, "y": 2.25}, + {"matrix": [2, 3], "x": 3.25, "y": 2.25}, + {"matrix": [2, 4], "x": 4.25, "y": 2.25, "h": 2}, + + {"matrix": [3, 0], "x": 0, "y": 3.25}, + {"matrix": [3, 1], "x": 1.25, "y": 3.25}, + {"matrix": [3, 2], "x": 2.25, "y": 3.25}, + {"matrix": [3, 3], "x": 3.25, "y": 3.25}, + + {"matrix": [4, 0], "x": 0, "y": 4.25}, + {"matrix": [4, 1], "x": 1.25, "y": 4.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, "h": 2}, + + {"matrix": [5, 0], "x": 0, "y": 5.25}, + {"matrix": [5, 1], "x": 1.25, "y": 5.25, "w": 2}, + {"matrix": [5, 3], "x": 3.25, "y": 5.25} + ] + } + } +} diff --git a/keyboards/keychron/q0/rev_0131/keymaps/default/keymap.c b/keyboards/keychron/q0/plus/keymaps/default/keymap.c diff --git a/keyboards/keychron/q0/rev_0131/keymaps/default/rules.mk b/keyboards/keychron/q0/plus/keymaps/default/rules.mk diff --git a/keyboards/keychron/q0/rev_0131/keymaps/keychron/keymap.c b/keyboards/keychron/q0/plus/keymaps/keychron/keymap.c diff --git a/keyboards/keychron/q0/rev_0131/keymaps/keychron/rules.mk b/keyboards/keychron/q0/plus/keymaps/keychron/rules.mk diff --git a/keyboards/keychron/q0/rev_0131/keymaps/via/keymap.c b/keyboards/keychron/q0/plus/keymaps/via/keymap.c diff --git a/keyboards/keychron/q0/rev_0131/keymaps/via/rules.mk b/keyboards/keychron/q0/plus/keymaps/via/rules.mk diff --git a/keyboards/keychron/q0/rev_0131/rev_0131.c b/keyboards/keychron/q0/plus/plus.c diff --git a/keyboards/keychron/q0/plus/readme.md b/keyboards/keychron/q0/plus/readme.md @@ -0,0 +1,12 @@ +# Keychron Q0 Plus + + + +* 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. Enables EC11 rotary encoder + - Turn clockwise to increase volume and turn anti-clockwise to decrease volume + - Press the knob button to mute diff --git a/keyboards/keychron/q0/plus/rules.mk b/keyboards/keychron/q0/plus/rules.mk @@ -0,0 +1 @@ +# This file intentionally left blank +\ No newline at end of file diff --git a/keyboards/keychron/q0/readme.md b/keyboards/keychron/q0/readme.md @@ -1,18 +1,22 @@ # Keychron Q0 + + 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/base:default + make keychron/q0/plus:default Flashing example for this keyboard: - make keychron/q0/rev_0130:default:flash + make keychron/q0/base:default:flash + make keychron/q0/plus:default:flash **Reset Key**: Hold down the key located at *K00*, commonly programmed as *Esc* while plugging in the keyboard. diff --git a/keyboards/keychron/q0/rev_0130/config.h b/keyboards/keychron/q0/rev_0130/config.h @@ -1,28 +0,0 @@ -/* Copyright 2022 @ 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 - -/* RGB Matrix Driver Configuration */ -#define SNLED27351_DRIVER_COUNT 1 -#define DRIVER_ADDR_1 SNLED27351_I2C_ADDRESS_GND - -/* RGB Matrix Configuration */ -#define DRIVER_1_LED_TOTAL 21 -#define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL - -/* Enable num-lock LED */ -#define NUM_LOCK_LED_INDEX 4 diff --git a/keyboards/keychron/q0/rev_0130/info.json b/keyboards/keychron/q0/rev_0130/info.json @@ -1,118 +0,0 @@ -{ - "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": "snled27351", - "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}, - {"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": 9, "matrix": [1, 0], "x": 0, "y": 6}, - {"flags": 4, "matrix": [1, 1], "x": 37, "y": 6}, - {"flags": 4, "matrix": [1, 2], "x": 75, "y": 6}, - {"flags": 4, "matrix": [1, 3], "x": 112, "y": 6}, - - {"flags": 4, "matrix": [2, 0], "x": 0, "y": 13}, - {"flags": 4, "matrix": [2, 1], "x": 37, "y": 13}, - {"flags": 4, "matrix": [2, 2], "x": 75, "y": 13}, - - {"flags": 4, "matrix": [3, 0], "x": 0, "y": 19}, - {"flags": 4, "matrix": [3, 1], "x": 37, "y": 19}, - {"flags": 4, "matrix": [3, 2], "x": 75, "y": 19}, - {"flags": 4, "matrix": [2, 3], "x": 112, "y": 16}, - - {"flags": 4, "matrix": [4, 0], "x": 0, "y": 25}, - {"flags": 4, "matrix": [4, 1], "x": 37, "y": 25}, - {"flags": 4, "matrix": [4, 2], "x": 75, "y": 25}, - - {"flags": 4, "matrix": [5, 0], "x": 18, "y": 32}, - {"flags": 4, "matrix": [5, 2], "x": 75, "y": 32}, - {"flags": 1, "matrix": [4, 3], "x": 112, "y": 29} - ] - }, - "layouts": { - "LAYOUT_numpad_6x4": { - "layout": [ - {"matrix": [0, 0], "x": 0, "y": 0}, - {"matrix": [0, 1], "x": 1, "y": 0}, - {"matrix": [0, 2], "x": 2, "y": 0}, - {"matrix": [0, 3], "x": 3, "y": 0}, - - {"matrix": [1, 0], "x": 0, "y": 1}, - {"matrix": [1, 1], "x": 1, "y": 1}, - {"matrix": [1, 2], "x": 2, "y": 1}, - {"matrix": [1, 3], "x": 3, "y": 1}, - - {"matrix": [2, 0], "x": 0, "y": 2}, - {"matrix": [2, 1], "x": 1, "y": 2}, - {"matrix": [2, 2], "x": 2, "y": 2}, - - {"matrix": [3, 0], "x": 0, "y": 3}, - {"matrix": [3, 1], "x": 1, "y": 3}, - {"matrix": [3, 2], "x": 2, "y": 3}, - {"matrix": [2, 3], "x": 3, "y": 2, "h": 2}, - - {"matrix": [4, 0], "x": 0, "y": 4}, - {"matrix": [4, 1], "x": 1, "y": 4}, - {"matrix": [4, 2], "x": 2, "y": 4}, - - {"matrix": [5, 0], "x": 0, "y": 5, "w": 2}, - {"matrix": [5, 2], "x": 2, "y": 5}, - {"matrix": [4, 3], "x": 3, "y": 4, "h": 2} - ] - } - } -} diff --git a/keyboards/keychron/q0/rev_0130/rules.mk b/keyboards/keychron/q0/rev_0130/rules.mk @@ -1 +0,0 @@ -# This file intentionally left blank diff --git a/keyboards/keychron/q0/rev_0131/config.h b/keyboards/keychron/q0/rev_0131/config.h @@ -1,33 +0,0 @@ -/* 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 - -/* RGB Matrix Driver Configuration */ -#define SNLED27351_DRIVER_COUNT 1 -#define DRIVER_ADDR_1 SNLED27351_I2C_ADDRESS_VDDIO - -/* RGB Matrix Configuration */ -#define DRIVER_1_LED_TOTAL 26 -#define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL - -#define SNLED27351_PHASE_CHANNEL SNLED27351_MSKPHASE_9CHANNEL - -/* Enable num-lock LED */ -#define NUM_LOCK_LED_INDEX 5 - -/* Encoder Configuration */ -#define ENCODER_DEFAULT_POS 0x3 diff --git a/keyboards/keychron/q0/rev_0131/info.json b/keyboards/keychron/q0/rev_0131/info.json @@ -1,137 +0,0 @@ -{ - "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 - }, - "diode_direction": "ROW2COL", - "encoder": { - "rotary": [ - {"pin_a": "A3", "pin_b": "A4"} - ] - }, - "bootmagic": { - "matrix": [0, 1] - }, - "processor": "STM32L432", - "bootloader": "stm32-dfu", - "rgb_matrix": { - "driver": "snled27351", - "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}, - {"flags": 1, "matrix": [0, 3], "x": 168, "y": 0}, - {"flags": 1, "matrix": [0, 4], "x": 224, "y": 0}, - - {"flags": 4, "matrix": [1, 0], "x": 0, "y": 15}, - {"flags": 8, "matrix": [1, 1], "x": 56, "y": 15}, - {"flags": 4, "matrix": [1, 2], "x": 112, "y": 15}, - {"flags": 4, "matrix": [1, 3], "x": 168, "y": 15}, - {"flags": 4, "matrix": [1, 4], "x": 224, "y": 15}, - - {"flags": 4, "matrix": [2, 0], "x": 0, "y": 27}, - {"flags": 4, "matrix": [2, 1], "x": 56, "y": 27}, - {"flags": 4, "matrix": [2, 2], "x": 112, "y": 27}, - {"flags": 4, "matrix": [2, 3], "x": 168, "y": 27}, - {"flags": 4, "matrix": [2, 4], "x": 224, "y": 34}, - - {"flags": 4, "matrix": [3, 0], "x": 0, "y": 40}, - {"flags": 4, "matrix": [3, 1], "x": 56, "y": 40}, - {"flags": 4, "matrix": [3, 2], "x": 112, "y": 40}, - {"flags": 4, "matrix": [3, 3], "x": 168, "y": 40}, - - {"flags": 4, "matrix": [4, 0], "x": 0, "y": 52}, - {"flags": 4, "matrix": [4, 1], "x": 56, "y": 52}, - {"flags": 4, "matrix": [4, 2], "x": 112, "y": 52}, - {"flags": 4, "matrix": [4, 3], "x": 168, "y": 52}, - {"flags": 4, "matrix": [4, 4], "x": 224, "y": 58}, - - {"flags": 4, "matrix": [5, 0], "x": 0, "y": 64}, - {"flags": 4, "matrix": [5, 1], "x": 84, "y": 64}, - {"flags": 1, "matrix": [5, 3], "x": 168, "y": 64} - ] - }, - "layouts": { - "LAYOUT_numpad_6x5": { - "layout": [ - {"matrix": [0, 0], "x": 0, "y": 0}, - {"matrix": [0, 1], "x": 1.25, "y": 0}, - {"matrix": [0, 2], "x": 2.25, "y": 0}, - {"matrix": [0, 3], "x": 3.25, "y": 0}, - {"matrix": [0, 4], "x": 4.25, "y": 0}, - - {"matrix": [1, 0], "x": 0, "y": 1.25}, - {"matrix": [1, 1], "x": 1.25, "y": 1.25}, - {"matrix": [1, 2], "x": 2.25, "y": 1.25}, - {"matrix": [1, 3], "x": 3.25, "y": 1.25}, - {"matrix": [1, 4], "x": 4.25, "y": 1.25}, - - {"matrix": [2, 0], "x": 0, "y": 2.25}, - {"matrix": [2, 1], "x": 1.25, "y": 2.25}, - {"matrix": [2, 2], "x": 2.25, "y": 2.25}, - {"matrix": [2, 3], "x": 3.25, "y": 2.25}, - {"matrix": [2, 4], "x": 4.25, "y": 2.25, "h": 2}, - - {"matrix": [3, 0], "x": 0, "y": 3.25}, - {"matrix": [3, 1], "x": 1.25, "y": 3.25}, - {"matrix": [3, 2], "x": 2.25, "y": 3.25}, - {"matrix": [3, 3], "x": 3.25, "y": 3.25}, - - {"matrix": [4, 0], "x": 0, "y": 4.25}, - {"matrix": [4, 1], "x": 1.25, "y": 4.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, "h": 2}, - - {"matrix": [5, 0], "x": 0, "y": 5.25}, - {"matrix": [5, 1], "x": 1.25, "y": 5.25, "w": 2}, - {"matrix": [5, 3], "x": 3.25, "y": 5.25} - ] - } - } -} diff --git a/keyboards/keychron/q0/rev_0131/readme.md b/keyboards/keychron/q0/rev_0131/readme.md @@ -1,6 +0,0 @@ -# The enhanced version with encoder of the Keychron Q0 - -- 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 diff --git a/keyboards/keychron/q0/rev_0131/rules.mk b/keyboards/keychron/q0/rev_0131/rules.mk @@ -1 +0,0 @@ -# This file intentionally left blank