You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
430 B

  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. .setleds = ws2812_setleds,
  9. };
  10. #elif defined(RGBLIGHT_APA102)
  11. # include "apa102.h"
  12. const rgblight_driver_t rgblight_driver = {
  13. .init = apa102_init,
  14. .setleds = apa102_setleds,
  15. };
  16. #endif