Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add _LED_COUNT defines to LED drivers #22309

Merged
merged 1 commit into from
Oct 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions drivers/led/aw20216s.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
fauxpark marked this conversation as resolved.
Show resolved Hide resolved

typedef struct aw20216s_led_t {
uint8_t driver : 2;
uint8_t r;
Expand Down
4 changes: 4 additions & 0 deletions drivers/led/issi/is31fl3218-simple.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions drivers/led/issi/is31fl3218.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions drivers/led/issi/is31fl3731-simple.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions drivers/led/issi/is31fl3731.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions drivers/led/issi/is31fl3733-simple.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions drivers/led/issi/is31fl3733.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions drivers/led/issi/is31fl3736-simple.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions drivers/led/issi/is31fl3736.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions drivers/led/issi/is31fl3737-simple.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions drivers/led/issi/is31fl3737.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions drivers/led/issi/is31fl3741-simple.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions drivers/led/issi/is31fl3741.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions drivers/led/snled27351-simple.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions drivers/led/snled27351.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,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;
Expand Down