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/handwired | |
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/handwired')
-rw-r--r-- | keyboards/handwired/promethium/rgbsps.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/keyboards/handwired/promethium/rgbsps.c b/keyboards/handwired/promethium/rgbsps.c index 957726e775..7dc26f4a5e 100644 --- a/keyboards/handwired/promethium/rgbsps.c +++ b/keyboards/handwired/promethium/rgbsps.c @@ -1,8 +1,15 @@ +#include "keyboard.h" #include "ws2812.h" #include "rgbsps.h" rgb_led_t led[RGBSPS_NUM]; +void keyboard_pre_init_kb(void) { + ws2812_init(); + + keyboard_pre_init_user(); +} + void rgbsps_set(uint8_t index, uint8_t r, uint8_t g, uint8_t b) { led[index].r = r; led[index].g = g; |