From 57d116796a4eaa1415bc8c6776ece59366001cfb Mon Sep 17 00:00:00 2001 From: lalalademaxiya1 <66767061+lalalademaxiya1@users.noreply.github.com> Date: Sat, 22 Jan 2022 18:25:51 +0800 Subject: Add rgb matrix support for q2 of keychron. (#15946) * Add new keyboard keychron_q1_rev_0101 for Keychron. * Update keymaps of keychron_q1_rev_0100 and keychron_q1_rev_0102. * Update keyboards/keychron/q1/rev_0101/rev_0101.h Co-authored-by: Joel Challis * Update keymap.c * Add new info.json. * Update info.json * Update keyboards/keychron/q1/rev_0101/keymaps/default/keymap.c Co-authored-by: Drashna Jaelre * Update keyboards/keychron/q1/rev_0101/rev_0101.c Co-authored-by: Drashna Jaelre * Update keyboards/keychron/q1/rev_0101/keymaps/via/keymap.c Co-authored-by: Drashna Jaelre * Update keyboards/keychron/q1/rev_0101/rev_0101.c Co-authored-by: Drashna Jaelre * Update keymap.c * Update info.json * Update all via keymaps keymaps of q1 series. KC_TASK and KC_FLXP are now defined using the VIA user keycodes range so they can be renamed "TASK" and "TILE" as a shortName in VIA. * Add keyboards keychron_q2 series. * Update default keymaps of keychron_q2 series. * Update rules.mk and MCU_LDSCRIPT specified as STM32L432xB. * Update keyboards/keychron/q1/rev_0101/rev_0101.c Co-authored-by: Drashna Jaelre * Update config.h * Update config.h * Update config.h * removed duplicated ifdef * Update keyboards/keychron/q1/rev_0101/rules.mk Co-authored-by: Ryan * Update keyboards/keychron/q2/rev_0110/rules.mk Co-authored-by: Ryan * Update keyboards/keychron/q2/rev_0110/rules.mk Co-authored-by: Ryan * Update keyboards/keychron/q2/rev_0113/rules.mk Co-authored-by: Ryan * Update keyboards/keychron/q2/rev_0111/rules.mk Co-authored-by: Ryan * Update keyboards/keychron/q2/rev_0111/rules.mk Co-authored-by: Ryan * Update keyboards/keychron/q2/rev_0112/rules.mk Co-authored-by: Ryan * Update keyboards/keychron/q2/rev_0112/rules.mk Co-authored-by: Ryan * Update keyboards/keychron/q2/rev_0113/rules.mk Co-authored-by: Ryan * Update rev_0101.c * Update rev_0101. * Enable support for edit RGB lighting in VIA. The updated design file at https://git.io/JyE0K includes only the enabled RGB_MATRIX modes. * Update q1. * Add rgb matrix support for q2 of keychron. * Update rule.mk. * Delete comment block which is unwanted. Co-authored-by: Joel Challis Co-authored-by: Drashna Jaelre Co-authored-by: Cesar Rojas Co-authored-by: lokher Co-authored-by: Ryan Co-authored-by: Adam Karim --- keyboards/keychron/q2/rev_0110/config.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'keyboards/keychron/q2/rev_0110/config.h') diff --git a/keyboards/keychron/q2/rev_0110/config.h b/keyboards/keychron/q2/rev_0110/config.h index d9fc5c1744..e41857d9b2 100644 --- a/keyboards/keychron/q2/rev_0110/config.h +++ b/keyboards/keychron/q2/rev_0110/config.h @@ -19,3 +19,8 @@ /* USB Device descriptor parameter */ #define PRODUCT_ID 0x0110 #define DEVICE_VER 0x0100 + +/* RGB Matrix Configuration */ +#define DRIVER_1_LED_TOTAL 34 +#define DRIVER_2_LED_TOTAL 33 +#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) -- cgit v1.2.3