diff options
author | Ryan <[email protected]> | 2024-03-18 22:03:27 +1100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-03-18 22:03:27 +1100 |
commit | f7cf40fa77164d7be9358ce83f7f5939d71b38bc (patch) | |
tree | 812acccac18212ae685a4dbc5e25fbe216b787ea /keyboards/oddforge/vea/ws2812_custom.c | |
parent | 23b7a02ebe2e6df738baa624c17e821c1573b69b (diff) | |
download | qmk_firmware-f7cf40fa77164d7be9358ce83f7f5939d71b38bc.tar.gz qmk_firmware-f7cf40fa77164d7be9358ce83f7f5939d71b38bc.zip |
Add init function to RGBLight driver struct (#23076)
Diffstat (limited to 'keyboards/oddforge/vea/ws2812_custom.c')
-rw-r--r-- | keyboards/oddforge/vea/ws2812_custom.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/keyboards/oddforge/vea/ws2812_custom.c b/keyboards/oddforge/vea/ws2812_custom.c index f52c8d06a8..a037b88b3e 100644 --- a/keyboards/oddforge/vea/ws2812_custom.c +++ b/keyboards/oddforge/vea/ws2812_custom.c @@ -23,12 +23,6 @@ void ws2812_init(void) { // Setleds for standard RGB void ws2812_setleds(rgb_led_t *ledarray, uint16_t leds) { - static bool s_init = false; - if (!s_init) { - ws2812_init(); - s_init = true; - } - i2c_transmit(WS2812_I2C_ADDRESS, (uint8_t *)ledarray, sizeof(rgb_led_t) * (leds >> 1), WS2812_I2C_TIMEOUT); i2c_transmit(WS2812_I2C_ADDRESS_RIGHT, (uint8_t *)ledarray+(sizeof(rgb_led_t) * (leds >> 1)), sizeof(rgb_led_t) * (leds - (leds >> 1)), WS2812_I2C_TIMEOUT); } |