From b2043973f2fc0e395131cc799e15318e01c19bc9 Mon Sep 17 00:00:00 2001 From: zvecr Date: Sat, 21 Oct 2023 22:13:53 +0100 Subject: [PATCH] Fix invalid LED driver config --- drivers/led/snled27351.h | 12 ++++++++++++ keyboards/kprepublic/bm60hsrgb/rev2/config.h | 2 +- keyboards/kprepublic/bm60hsrgb_ec/rev2/config.h | 2 +- keyboards/projectd/65/projectd_65_ansi/config.h | 2 -- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/led/snled27351.h b/drivers/led/snled27351.h index 770becdba182..67047c892174 100644 --- a/drivers/led/snled27351.h +++ b/drivers/led/snled27351.h @@ -24,6 +24,18 @@ #ifdef DRIVER_COUNT # define SNLED27351_DRIVER_COUNT DRIVER_COUNT #endif +#ifdef DRIVER_ADDR_1 +# define SNLED27351_I2C_ADDRESS_1 DRIVER_ADDR_1 +#endif +#ifdef DRIVER_ADDR_2 +# define SNLED27351_I2C_ADDRESS_2 DRIVER_ADDR_2 +#endif +#ifdef DRIVER_ADDR_3 +# define SNLED27351_I2C_ADDRESS_3 DRIVER_ADDR_3 +#endif +#ifdef DRIVER_ADDR_4 +# define SNLED27351_I2C_ADDRESS_4 DRIVER_ADDR_4 +#endif #ifdef CKLED2001_TIMEOUT # define SNLED27351_I2C_TIMEOUT CKLED2001_TIMEOUT #endif diff --git a/keyboards/kprepublic/bm60hsrgb/rev2/config.h b/keyboards/kprepublic/bm60hsrgb/rev2/config.h index 618473d5a4f7..934983862230 100644 --- a/keyboards/kprepublic/bm60hsrgb/rev2/config.h +++ b/keyboards/kprepublic/bm60hsrgb/rev2/config.h @@ -64,7 +64,7 @@ #define ENABLE_RGB_MATRIX_SOLID_SPLASH #define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH -#define IS31FL3733_DRIVER_COUNT 2 +#define IS31FL3733_DRIVER_COUNT 1 #define DRIVER_1_LED_TOTAL 63 //#define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL diff --git a/keyboards/kprepublic/bm60hsrgb_ec/rev2/config.h b/keyboards/kprepublic/bm60hsrgb_ec/rev2/config.h index 096018e911e3..53ef0bc53f46 100644 --- a/keyboards/kprepublic/bm60hsrgb_ec/rev2/config.h +++ b/keyboards/kprepublic/bm60hsrgb_ec/rev2/config.h @@ -19,7 +19,7 @@ # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended # define IS31FL3733_I2C_ADDRESS_1 IS31FL3733_I2C_ADDRESS_GND_GND -# define IS31FL3733_DRIVER_COUNT 2 +# define IS31FL3733_DRIVER_COUNT 1 # define DRIVER_1_LED_TOTAL 63 # define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL diff --git a/keyboards/projectd/65/projectd_65_ansi/config.h b/keyboards/projectd/65/projectd_65_ansi/config.h index fb86e2c7811c..23540640ad6a 100644 --- a/keyboards/projectd/65/projectd_65_ansi/config.h +++ b/keyboards/projectd/65/projectd_65_ansi/config.h @@ -33,9 +33,7 @@ #define SPI_MISO_PIN A6 #define AW20216S_CS_PIN_1 A15 -#define AW20216S_CS_PIN_2 B15 #define AW20216S_EN_PIN_1 C13 -#define AW20216S_EN_PIN_2 C13 #define AW20216S_DRIVER_COUNT 1 #define RGB_MATRIX_LED_COUNT 71