summaryrefslogtreecommitdiff
path: root/builddefs
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-09-27 14:37:06 +1000
committerGitHub <noreply@github.com>2023-09-27 14:37:06 +1000
commit288c2313fe3b705a07166971210e91a33bb1add4 (patch)
tree37b6666738313d98dcc04aa7c21b4104035563c1 /builddefs
parent18bc541694c99f86ce27a23f44246597c3ba91f2 (diff)
is31fl3218: Add LED Matrix support (#22126)
Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'builddefs')
-rw-r--r--builddefs/common_features.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/builddefs/common_features.mk b/builddefs/common_features.mk
index edc6f30d64..c20c8be8bd 100644
--- a/builddefs/common_features.mk
+++ b/builddefs/common_features.mk
@@ -354,7 +354,7 @@ LED_MATRIX_DRIVER := aw20216s
endif
LED_MATRIX_ENABLE ?= no
-VALID_LED_MATRIX_TYPES := is31fl3731 is31fl3736 is31fl3742a is31fl3743a is31fl3745 is31fl3746a ckled2001 custom
+VALID_LED_MATRIX_TYPES := is31fl3218 is31fl3731 is31fl3736 is31fl3742a is31fl3743a is31fl3745 is31fl3746a ckled2001 custom
# TODO: is31fl3733 is31fl3737 is31fl3741
ifeq ($(strip $(LED_MATRIX_ENABLE)), yes)
@@ -377,6 +377,13 @@ endif
SRC += $(LIB_PATH)/lib8tion/lib8tion.c
CIE1931_CURVE := yes
+ ifeq ($(strip $(LED_MATRIX_DRIVER)), is31fl3218)
+ OPT_DEFS += -DHAL_USE_I2C=TRUE
+ COMMON_VPATH += $(DRIVER_PATH)/led/issi
+ SRC += is31fl3218-simple.c
+ QUANTUM_LIB_SRC += i2c_master.c
+ endif
+
ifeq ($(strip $(LED_MATRIX_DRIVER)), is31fl3731)
OPT_DEFS += -DHAL_USE_I2C=TRUE
COMMON_VPATH += $(DRIVER_PATH)/led/issi