diff options
author | Gigahawk <jasperchan515@gmail.com> | 2021-06-09 18:40:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-10 11:40:25 +1000 |
commit | 32b2ac0a807bdb088df685e6118f4c0966b6cca4 (patch) | |
tree | c1720e551dc875bd585dc1136f4f99ea00f23c28 /common_features.mk | |
parent | e21a03990116b439de2d4a0181f4a87d048e0366 (diff) | |
download | qmk_firmware-32b2ac0a807bdb088df685e6118f4c0966b6cca4.tar.gz qmk_firmware-32b2ac0a807bdb088df685e6118f4c0966b6cca4.zip |
GMMK Pro RGB Support (#13147)
* Enable SPI1 for GMMK pro
* Setup initial boilerplate for new LED driver
* RGB matrix minimally functional
* Map full LED matrix
* Return keymap to default
* Fix printscreen LED mapping
* Reduce max brightness
* Default values for AW20216
* Add documentation for AW20216
* Disable console and warnings
* Run cformat
* Update drivers/awinic/aw20216.h
Co-authored-by: Drashna Jaelre <drashna@live.com>
* make aw struct match issi struct
Co-authored-by: Drashna Jaelre <drashna@live.com>
* add led location defines
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Use led pin definitions in keyboard.c
* Add driver indices to led map
* Fix elif typo
* Run cformat
* Update docs
* Fix typo in docs
* Document global brightness limits
Co-authored-by: Drashna Jaelre <drashna@live.com>
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 1a9fd46b5..37ce928e2 100644 --- a/common_features.mk +++ b/common_features.mk | |||
@@ -244,7 +244,7 @@ endif | |||
244 | endif | 244 | endif |
245 | 245 | ||
246 | RGB_MATRIX_ENABLE ?= no | 246 | RGB_MATRIX_ENABLE ?= no |
247 | VALID_RGB_MATRIX_TYPES := IS31FL3731 IS31FL3733 IS31FL3737 IS31FL3741 WS2812 custom | 247 | VALID_RGB_MATRIX_TYPES := AW20216 IS31FL3731 IS31FL3733 IS31FL3737 IS31FL3741 WS2812 custom |
248 | 248 | ||
249 | ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes) | 249 | ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes) |
250 | ifeq ($(filter $(RGB_MATRIX_DRIVER),$(VALID_RGB_MATRIX_TYPES)),) | 250 | ifeq ($(filter $(RGB_MATRIX_DRIVER),$(VALID_RGB_MATRIX_TYPES)),) |
@@ -261,6 +261,13 @@ endif | |||
261 | CIE1931_CURVE := yes | 261 | CIE1931_CURVE := yes |
262 | RGB_KEYCODES_ENABLE := yes | 262 | RGB_KEYCODES_ENABLE := yes |
263 | 263 | ||
264 | ifeq ($(strip $(RGB_MATRIX_DRIVER)), AW20216) | ||
265 | OPT_DEFS += -DAW20216 -DSTM32_SPI -DHAL_USE_SPI=TRUE | ||
266 | COMMON_VPATH += $(DRIVER_PATH)/awinic | ||
267 | SRC += aw20216.c | ||
268 | QUANTUM_LIB_SRC += spi_master.c | ||
269 | endif | ||
270 | |||
264 | ifeq ($(strip $(RGB_MATRIX_DRIVER)), IS31FL3731) | 271 | ifeq ($(strip $(RGB_MATRIX_DRIVER)), IS31FL3731) |
265 | OPT_DEFS += -DIS31FL3731 -DSTM32_I2C -DHAL_USE_I2C=TRUE | 272 | OPT_DEFS += -DIS31FL3731 -DSTM32_I2C -DHAL_USE_I2C=TRUE |
266 | COMMON_VPATH += $(DRIVER_PATH)/issi | 273 | COMMON_VPATH += $(DRIVER_PATH)/issi |