diff options
author | Ryan <[email protected]> | 2023-10-04 20:12:50 +1100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-10-04 20:12:50 +1100 |
commit | d99dbe4d56a5d414b8d131bf703257172af91b70 (patch) | |
tree | fa8b7212734413a48e3232fdc45f30047e62fa3d /drivers/led/issi/is31fl3731-simple.h | |
parent | c0f16be50fec33cdb30386ac512efb900f3f7470 (diff) | |
download | qmk_firmware-d99dbe4d56a5d414b8d131bf703257172af91b70.tar.gz qmk_firmware-d99dbe4d56a5d414b8d131bf703257172af91b70.zip |
Update ISSI LED types (#22099)
Diffstat (limited to 'drivers/led/issi/is31fl3731-simple.h')
-rw-r--r-- | drivers/led/issi/is31fl3731-simple.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/led/issi/is31fl3731-simple.h b/drivers/led/issi/is31fl3731-simple.h index e6c9ce37c5..940ad413d8 100644 --- a/drivers/led/issi/is31fl3731-simple.h +++ b/drivers/led/issi/is31fl3731-simple.h @@ -35,6 +35,9 @@ #ifdef ISSI_3731_DEGHOST # define IS31FL3731_DEGHOST ISSI_3731_DEGHOST #endif + +#define is31_led is31fl3731_led_t +#define g_is31_leds g_is31fl3731_leds // ======== #define IS31FL3731_I2C_ADDRESS_GND 0x74 @@ -42,12 +45,12 @@ #define IS31FL3731_I2C_ADDRESS_SDA 0x76 #define IS31FL3731_I2C_ADDRESS_VCC 0x77 -typedef struct is31_led { +typedef struct is31fl3731_led_t { uint8_t driver : 2; uint8_t v; -} __attribute__((packed)) is31_led; +} __attribute__((packed)) is31fl3731_led_t; -extern const is31_led PROGMEM g_is31_leds[LED_MATRIX_LED_COUNT]; +extern const is31fl3731_led_t PROGMEM g_is31fl3731_leds[LED_MATRIX_LED_COUNT]; void is31fl3731_init(uint8_t addr); void is31fl3731_write_register(uint8_t addr, uint8_t reg, uint8_t data); |