aboutsummaryrefslogtreecommitdiff
path: root/quantum/rgblight/rgblight_drivers.c
blob: ef986ee13c55021b57a5f4bf9cd59b8df5c04b22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// 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 = {
    .init          = ws2812_init,
    .set_color     = ws2812_set_color,
    .set_color_all = ws2812_set_color_all,
    .flush         = ws2812_flush,
};

#elif defined(RGBLIGHT_APA102)
#    include "apa102.h"

const rgblight_driver_t rgblight_driver = {
    .init          = apa102_init,
    .set_color     = apa102_set_color,
    .set_color_all = apa102_set_color_all,
    .flush         = apa102_flush,
};

#endif