2023-12-05 11:49:14 +00:00
|
|
|
// Copyright 2023 QMK
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#include "rgblight_drivers.h"
|
|
|
|
|
|
|
|
#if defined(RGBLIGHT_WS2812)
|
|
|
|
# include "ws2812.h"
|
|
|
|
|
|
|
|
const rgblight_driver_t rgblight_driver = {
|
2024-10-06 08:01:07 +00:00
|
|
|
.init = ws2812_init,
|
|
|
|
.set_color = ws2812_set_color,
|
|
|
|
.set_color_all = ws2812_set_color_all,
|
|
|
|
.flush = ws2812_flush,
|
2023-12-05 11:49:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#elif defined(RGBLIGHT_APA102)
|
|
|
|
# include "apa102.h"
|
|
|
|
|
|
|
|
const rgblight_driver_t rgblight_driver = {
|
2024-10-06 08:01:07 +00:00
|
|
|
.init = apa102_init,
|
|
|
|
.set_color = apa102_set_color,
|
|
|
|
.set_color_all = apa102_set_color_all,
|
|
|
|
.flush = apa102_flush,
|
2023-12-05 11:49:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|