rgblight_drivers.c (614B)
1 // Copyright 2023 QMK 2 // SPDX-License-Identifier: GPL-2.0-or-later 3 4 #include "rgblight_drivers.h" 5 6 #if defined(RGBLIGHT_WS2812) 7 # include "ws2812.h" 8 9 const rgblight_driver_t rgblight_driver = { 10 .init = ws2812_init, 11 .set_color = ws2812_set_color, 12 .set_color_all = ws2812_set_color_all, 13 .flush = ws2812_flush, 14 }; 15 16 #elif defined(RGBLIGHT_APA102) 17 # include "apa102.h" 18 19 const rgblight_driver_t rgblight_driver = { 20 .init = apa102_init, 21 .set_color = apa102_set_color, 22 .set_color_all = apa102_set_color_all, 23 .flush = apa102_flush, 24 }; 25 26 #endif