Add _LED_COUNT defines to LED drivers (#22309)

This commit is contained in:
Ryan 2023-10-30 08:39:26 +10:00 committed by GitHub
parent c667da0190
commit 17ccf3521b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 60 additions and 0 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;