logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

rgb_matrix_drivers.h (1611B)


  1. // Copyright 2023 QMK
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include <stdint.h>
  5. #if defined(RGB_MATRIX_AW20216S)
  6. # include "aw20216s.h"
  7. #elif defined(RGB_MATRIX_IS31FL3236)
  8. # include "is31fl3236.h"
  9. #elif defined(RGB_MATRIX_IS31FL3218)
  10. # include "is31fl3218.h"
  11. #elif defined(RGB_MATRIX_IS31FL3729)
  12. # include "is31fl3729.h"
  13. #elif defined(RGB_MATRIX_IS31FL3731)
  14. # include "is31fl3731.h"
  15. #elif defined(RGB_MATRIX_IS31FL3733)
  16. # include "is31fl3733.h"
  17. #elif defined(RGB_MATRIX_IS31FL3736)
  18. # include "is31fl3736.h"
  19. #elif defined(RGB_MATRIX_IS31FL3737)
  20. # include "is31fl3737.h"
  21. #elif defined(RGB_MATRIX_IS31FL3741)
  22. # include "is31fl3741.h"
  23. #elif defined(RGB_MATRIX_IS31FL3742A)
  24. # include "is31fl3742a.h"
  25. #elif defined(RGB_MATRIX_IS31FL3743A)
  26. # include "is31fl3743a.h"
  27. #elif defined(RGB_MATRIX_IS31FL3745)
  28. # include "is31fl3745.h"
  29. #elif defined(RGB_MATRIX_IS31FL3746A)
  30. # include "is31fl3746a.h"
  31. #elif defined(RGB_MATRIX_SNLED27351)
  32. # include "snled27351.h"
  33. #elif defined(RGB_MATRIX_WS2812)
  34. # include "ws2812.h"
  35. #endif
  36. typedef struct {
  37. /* Perform any initialisation required for the other driver functions to work. */
  38. void (*init)(void);
  39. /* Set the colour of a single LED in the buffer. */
  40. void (*set_color)(int index, uint8_t r, uint8_t g, uint8_t b);
  41. /* Set the colour of all LEDS on the keyboard in the buffer. */
  42. void (*set_color_all)(uint8_t r, uint8_t g, uint8_t b);
  43. /* Flush any buffered changes to the hardware. */
  44. void (*flush)(void);
  45. } rgb_matrix_driver_t;
  46. extern const rgb_matrix_driver_t rgb_matrix_driver;