diff options
author | Ryan <[email protected]> | 2023-10-23 03:32:27 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2023-10-22 18:32:27 +0100 |
commit | cf7d3435d7e2cfb8927a1c436320f67bc9914eeb (patch) | |
tree | 272161a65714e8ba457d14af17a691becb7211ef /drivers/led/issi/is31fl3731.c | |
parent | 1e9b299fb0511e82ae60a4b39a1b277f4ea21afd (diff) | |
download | qmk_firmware-cf7d3435d7e2cfb8927a1c436320f67bc9914eeb.tar.gz qmk_firmware-cf7d3435d7e2cfb8927a1c436320f67bc9914eeb.zip |
Add `_flush()` functions to LED drivers (#22308)
Diffstat (limited to 'drivers/led/issi/is31fl3731.c')
-rw-r--r-- | drivers/led/issi/is31fl3731.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/led/issi/is31fl3731.c b/drivers/led/issi/is31fl3731.c index a30e8fcbc2..767c0da0d9 100644 --- a/drivers/led/issi/is31fl3731.c +++ b/drivers/led/issi/is31fl3731.c @@ -223,3 +223,16 @@ void is31fl3731_update_led_control_registers(uint8_t addr, uint8_t index) { } g_led_control_registers_update_required[index] = false; } + +void is31fl3731_flush(void) { + is31fl3731_update_pwm_buffers(IS31FL3731_I2C_ADDRESS_1, 0); +#if defined(IS31FL3731_I2C_ADDRESS_2) + is31fl3731_update_pwm_buffers(IS31FL3731_I2C_ADDRESS_2, 1); +# if defined(IS31FL3731_I2C_ADDRESS_3) + is31fl3731_update_pwm_buffers(IS31FL3731_I2C_ADDRESS_3, 2); +# if defined(IS31FL3731_I2C_ADDRESS_4) + is31fl3731_update_pwm_buffers(IS31FL3731_I2C_ADDRESS_4, 3); +# endif +# endif +#endif +} |