summaryrefslogtreecommitdiff
path: root/keyboards/keychron/q2/rev_0111/rules.mk
diff options
context:
space:
mode:
authorlalalademaxiya1 <66767061+lalalademaxiya1@users.noreply.github.com>2022-01-22 18:25:51 +0800
committerGitHub <noreply@github.com>2022-01-22 21:25:51 +1100
commit57d116796a4eaa1415bc8c6776ece59366001cfb (patch)
tree409bfa0bab2d34860334f82905eeba6b7e0112f5 /keyboards/keychron/q2/rev_0111/rules.mk
parent25cffa26171be0615ca2a5da8920985f7bc5cbe1 (diff)
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 <git@zvecr.com> * 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 <drashna@live.com> * Update keyboards/keychron/q1/rev_0101/rev_0101.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/keychron/q1/rev_0101/keymaps/via/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/keychron/q1/rev_0101/rev_0101.c Co-authored-by: Drashna Jaelre <drashna@live.com> * 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 <drashna@live.com> * Update config.h * Update config.h * Update config.h * removed duplicated ifdef * Update keyboards/keychron/q1/rev_0101/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/keychron/q2/rev_0110/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/keychron/q2/rev_0110/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/keychron/q2/rev_0113/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/keychron/q2/rev_0111/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/keychron/q2/rev_0111/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/keychron/q2/rev_0112/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/keychron/q2/rev_0112/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/keychron/q2/rev_0113/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * 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 <git@zvecr.com> Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Cesar Rojas <cesar.fieoner@gmail.com> Co-authored-by: lokher <lokher@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Adam Karim <adam@akarsoft.com>
Diffstat (limited to 'keyboards/keychron/q2/rev_0111/rules.mk')
-rw-r--r--keyboards/keychron/q2/rev_0111/rules.mk17
1 files changed, 3 insertions, 14 deletions
diff --git a/keyboards/keychron/q2/rev_0111/rules.mk b/keyboards/keychron/q2/rev_0111/rules.mk
index 52d0bce592..3b931ef9fe 100644
--- a/keyboards/keychron/q2/rev_0111/rules.mk
+++ b/keyboards/keychron/q2/rev_0111/rules.mk
@@ -1,13 +1,5 @@
# MCU name
-# MCU = STM32L432
-MCU = cortex-m4
-ARMV = 7
-MCU_FAMILY = STM32
-MCU_SERIES = STM32L4xx
-MCU_LDSCRIPT = STM32L432xB
-MCU_STARTUP = stm32l4xx
-BOARD = GENERIC_STM32_L433XC
-PLATFORM_NAME = platform_l432
+MCU = STM32L433
# Build Options
# change yes to no to disable
@@ -23,12 +15,9 @@ RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output
ENCODER_ENABLE = yes # Enable Encoder
DIP_SWITCH_ENABLE = yes
+RGB_MATRIX_ENABLE = yes
+RGB_MATRIX_DRIVER = CKLED2001
EEPROM_DRIVER = i2c
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
-
-# custom matrix setup
-CUSTOM_MATRIX = lite
-
-SRC += matrix.c