diff options
author | MelGeek <65591833+melgeek001365@users.noreply.github.com> | 2020-06-20 12:49:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-20 14:49:15 +1000 |
commit | d9eae3ef033d3adce7da1ba3d57cc9480659deb0 (patch) | |
tree | a3b7effb6d96554a464f7218ebbde9c42995550a /common_features.mk | |
parent | 05e6cc265509af3286ab0e695839e311acc58b55 (diff) | |
download | qmk_firmware-d9eae3ef033d3adce7da1ba3d57cc9480659deb0.tar.gz qmk_firmware-d9eae3ef033d3adce7da1ba3d57cc9480659deb0.zip |
Support IS31FL3741 and IS31FL3741A. (#9201)
Diffstat (limited to 'common_features.mk')
-rw-r--r-- | common_features.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/common_features.mk b/common_features.mk index bdc6f883e..e23de553b 100644 --- a/common_features.mk +++ b/common_features.mk | |||
@@ -144,7 +144,7 @@ ifeq ($(strip $(RGBLIGHT_ENABLE)), yes) | |||
144 | endif | 144 | endif |
145 | endif | 145 | endif |
146 | 146 | ||
147 | VALID_MATRIX_TYPES := yes IS31FL3731 IS31FL3733 IS31FL3737 WS2812 custom | 147 | VALID_MATRIX_TYPES := yes IS31FL3731 IS31FL3733 IS31FL3737 IS31FL3741 WS2812 custom |
148 | 148 | ||
149 | LED_MATRIX_ENABLE ?= no | 149 | LED_MATRIX_ENABLE ?= no |
150 | ifneq ($(strip $(LED_MATRIX_ENABLE)), no) | 150 | ifneq ($(strip $(LED_MATRIX_ENABLE)), no) |
@@ -205,6 +205,13 @@ ifeq ($(strip $(RGB_MATRIX_ENABLE)), IS31FL3737) | |||
205 | QUANTUM_LIB_SRC += i2c_master.c | 205 | QUANTUM_LIB_SRC += i2c_master.c |
206 | endif | 206 | endif |
207 | 207 | ||
208 | ifeq ($(strip $(RGB_MATRIX_ENABLE)), IS31FL3741) | ||
209 | OPT_DEFS += -DIS31FL3741 -DSTM32_I2C -DHAL_USE_I2C=TRUE | ||
210 | COMMON_VPATH += $(DRIVER_PATH)/issi | ||
211 | SRC += is31fl3741.c | ||
212 | QUANTUM_LIB_SRC += i2c_master.c | ||
213 | endif | ||
214 | |||
208 | ifeq ($(strip $(RGB_MATRIX_ENABLE)), WS2812) | 215 | ifeq ($(strip $(RGB_MATRIX_ENABLE)), WS2812) |
209 | OPT_DEFS += -DWS2812 | 216 | OPT_DEFS += -DWS2812 |
210 | WS2812_DRIVER_REQUIRED := yes | 217 | WS2812_DRIVER_REQUIRED := yes |