rgblight_drivers.c 614 B

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