Add init function to RGBLight driver struct (#23076)
This commit is contained in:
parent
23b7a02ebe
commit
f7cf40fa77
42 changed files with 306 additions and 93 deletions
|
@ -20,11 +20,13 @@
|
|||
#undef WS2812_DI_PIN
|
||||
#define WS2812_DI_PIN RGBLIGHT_DI_PIN
|
||||
|
||||
#define ws2812_init ws2812_rgb_init
|
||||
#define ws2812_setleds ws2812_rgb_setleds
|
||||
|
||||
#include "ws2812_bitbang.c"
|
||||
|
||||
const rgblight_driver_t rgblight_driver = {
|
||||
.init = ws2812_init,
|
||||
.setleds = ws2812_setleds,
|
||||
};
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue