Add `_LED_COUNT` defines to LED drivers (#22309)
parent
c667da0190
commit
17ccf3521b
|
@ -54,6 +54,10 @@
|
|||
#define g_aw_leds g_aw20216s_leds
|
||||
// ========
|
||||
|
||||
#if defined(RGB_MATRIX_AW20216S)
|
||||
# define AW20216S_LED_COUNT RGB_MATRIX_LED_COUNT
|
||||
#endif
|
||||
|
||||
typedef struct aw20216s_led_t {
|
||||
uint8_t driver : 2;
|
||||
uint8_t r;
|
||||
|
|
|
@ -22,6 +22,10 @@
|
|||
|
||||
#define IS31FL3218_I2C_ADDRESS 0x54
|
||||
|
||||
#if defined(LED_MATRIX_IS31FL3218)
|
||||
# define IS31FL3218_LED_COUNT LED_MATRIX_LED_COUNT
|
||||
#endif
|
||||
|
||||
typedef struct is31fl3218_led_t {
|
||||
uint8_t v;
|
||||
} __attribute__((packed)) is31fl3218_led_t;
|
||||
|
|
|
@ -22,6 +22,10 @@
|
|||
|
||||
#define IS31FL3218_I2C_ADDRESS 0x54
|
||||
|
||||
#if defined(RGB_MATRIX_IS31FL3218)
|
||||
# define IS31FL3218_LED_COUNT RGB_MATRIX_LED_COUNT
|
||||
#endif
|
||||
|
||||
typedef struct is31fl3218_led_t {
|
||||
uint8_t r;
|
||||
uint8_t g;
|
||||
|
|
|
@ -57,6 +57,10 @@
|
|||
#define IS31FL3731_I2C_ADDRESS_SDA 0x76
|
||||
#define IS31FL3731_I2C_ADDRESS_VCC 0x77
|
||||
|
||||
#if defined(LED_MATRIX_IS31FL3731)
|
||||
# define IS31FL3731_LED_COUNT LED_MATRIX_LED_COUNT
|
||||
#endif
|
||||
|
||||
typedef struct is31fl3731_led_t {
|
||||
uint8_t driver : 2;
|
||||
uint8_t v;
|
||||
|
|
|
@ -56,6 +56,10 @@
|
|||
#define IS31FL3731_I2C_ADDRESS_SDA 0x76
|
||||
#define IS31FL3731_I2C_ADDRESS_VCC 0x77
|
||||
|
||||
#if defined(RGB_MATRIX_IS31FL3731)
|
||||
# define IS31FL3731_LED_COUNT RGB_MATRIX_LED_COUNT
|
||||
#endif
|
||||
|
||||
typedef struct is31fl3731_led_t {
|
||||
uint8_t driver : 2;
|
||||
uint8_t r;
|
||||
|
|
|
@ -76,6 +76,10 @@
|
|||
#define IS31FL3733_I2C_ADDRESS_VCC_SDA 0x5E
|
||||
#define IS31FL3733_I2C_ADDRESS_VCC_VCC 0x5F
|
||||
|
||||
#if defined(LED_MATRIX_IS31FL3733)
|
||||
# define IS31FL3733_LED_COUNT LED_MATRIX_LED_COUNT
|
||||
#endif
|
||||
|
||||
typedef struct is31fl3733_led_t {
|
||||
uint8_t driver : 2;
|
||||
uint8_t v;
|
||||
|
|
|
@ -99,6 +99,10 @@
|
|||
#define IS31FL3733_I2C_ADDRESS_VCC_SDA 0x5E
|
||||
#define IS31FL3733_I2C_ADDRESS_VCC_VCC 0x5F
|
||||
|
||||
#if defined(RGB_MATRIX_IS31FL3733)
|
||||
# define IS31FL3733_LED_COUNT RGB_MATRIX_LED_COUNT
|
||||
#endif
|
||||
|
||||
typedef struct is31fl3733_led_t {
|
||||
uint8_t driver : 2;
|
||||
uint8_t r;
|
||||
|
|
|
@ -71,6 +71,10 @@
|
|||
#define IS31FL3736_I2C_ADDRESS_VCC_SDA 0x5E
|
||||
#define IS31FL3736_I2C_ADDRESS_VCC_VCC 0x5F
|
||||
|
||||
#if defined(LED_MATRIX_IS31FL3736)
|
||||
# define IS31FL3736_LED_COUNT LED_MATRIX_LED_COUNT
|
||||
#endif
|
||||
|
||||
typedef struct is31fl3736_led_t {
|
||||
uint8_t driver : 2;
|
||||
uint8_t v;
|
||||
|
|
|
@ -83,6 +83,10 @@
|
|||
#define IS31FL3736_I2C_ADDRESS_VCC_SDA 0x5E
|
||||
#define IS31FL3736_I2C_ADDRESS_VCC_VCC 0x5F
|
||||
|
||||
#if defined(RGB_MATRIX_IS31FL3736)
|
||||
# define IS31FL3736_LED_COUNT RGB_MATRIX_LED_COUNT
|
||||
#endif
|
||||
|
||||
typedef struct is31fl3736_led_t {
|
||||
uint8_t driver : 2;
|
||||
uint8_t r;
|
||||
|
|
|
@ -61,6 +61,10 @@
|
|||
#define IS31FL3737_I2C_ADDRESS_SDA 0x5A
|
||||
#define IS31FL3737_I2C_ADDRESS_VCC 0x5F
|
||||
|
||||
#if defined(LED_MATRIX_IS31FL3737)
|
||||
# define IS31FL3737_LED_COUNT LED_MATRIX_LED_COUNT
|
||||
#endif
|
||||
|
||||
typedef struct is31fl3737_led_t {
|
||||
uint8_t driver : 2;
|
||||
uint8_t v;
|
||||
|
|
|
@ -76,6 +76,10 @@
|
|||
#define IS31FL3737_I2C_ADDRESS_SDA 0x5A
|
||||
#define IS31FL3737_I2C_ADDRESS_VCC 0x5F
|
||||
|
||||
#if defined(RGB_MATRIX_IS31FL3737)
|
||||
# define IS31FL3737_LED_COUNT RGB_MATRIX_LED_COUNT
|
||||
#endif
|
||||
|
||||
typedef struct is31fl3737_led_t {
|
||||
uint8_t driver : 2;
|
||||
uint8_t r;
|
||||
|
|
|
@ -61,6 +61,10 @@
|
|||
#define IS31FL3741_I2C_ADDRESS_SDA 0x32
|
||||
#define IS31FL3741_I2C_ADDRESS_VCC 0x33
|
||||
|
||||
#if defined(LED_MATRIX_IS31FL3741)
|
||||
# define IS31FL3741_LED_COUNT LED_MATRIX_LED_COUNT
|
||||
#endif
|
||||
|
||||
typedef struct is31fl3741_led_t {
|
||||
uint32_t driver : 2;
|
||||
uint32_t v : 10;
|
||||
|
|
|
@ -76,6 +76,10 @@
|
|||
#define IS31FL3741_I2C_ADDRESS_SDA 0x32
|
||||
#define IS31FL3741_I2C_ADDRESS_VCC 0x33
|
||||
|
||||
#if defined(RGB_MATRIX_IS31FL3741)
|
||||
# define IS31FL3741_LED_COUNT RGB_MATRIX_LED_COUNT
|
||||
#endif
|
||||
|
||||
typedef struct is31fl3741_led_t {
|
||||
uint32_t driver : 2;
|
||||
uint32_t r : 10;
|
||||
|
|
|
@ -59,6 +59,10 @@
|
|||
#define SNLED27351_I2C_ADDRESS_SDA 0x76
|
||||
#define SNLED27351_I2C_ADDRESS_VDDIO 0x77
|
||||
|
||||
#if defined(LED_MATRIX_SNLED27351)
|
||||
# define SNLED27351_LED_COUNT LED_MATRIX_LED_COUNT
|
||||
#endif
|
||||
|
||||
typedef struct snled27351_led_t {
|
||||
uint8_t driver : 2;
|
||||
uint8_t v;
|
||||
|
|
|
@ -71,6 +71,10 @@
|
|||
#define SNLED27351_I2C_ADDRESS_SDA 0x76
|
||||
#define SNLED27351_I2C_ADDRESS_VDDIO 0x77
|
||||
|
||||
#if defined(RGB_MATRIX_SNLED27351)
|
||||
# define SNLED27351_LED_COUNT RGB_MATRIX_LED_COUNT
|
||||
#endif
|
||||
|
||||
typedef struct snled27351_led_t {
|
||||
uint8_t driver : 2;
|
||||
uint8_t r;
|
||||
|
|
Loading…
Reference in New Issue