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.

46 lines
1.4 KiB

  1. // Copyright 2023 QMK
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include <stdint.h>
  5. #if defined(LED_MATRIX_IS31FL3218)
  6. # include "is31fl3218-mono.h"
  7. #elif defined(LED_MATRIX_IS31FL3729)
  8. # include "is31fl3729-mono.h"
  9. #elif defined(LED_MATRIX_IS31FL3731)
  10. # include "is31fl3731-mono.h"
  11. #elif defined(LED_MATRIX_IS31FL3733)
  12. # include "is31fl3733-mono.h"
  13. #elif defined(LED_MATRIX_IS31FL3736)
  14. # include "is31fl3736-mono.h"
  15. #elif defined(LED_MATRIX_IS31FL3737)
  16. # include "is31fl3737-mono.h"
  17. #elif defined(LED_MATRIX_IS31FL3741)
  18. # include "is31fl3741-mono.h"
  19. #elif defined(LED_MATRIX_IS31FL3742A)
  20. # include "is31fl3742a-mono.h"
  21. #elif defined(LED_MATRIX_IS31FL3743A)
  22. # include "is31fl3743a-mono.h"
  23. #elif defined(LED_MATRIX_IS31FL3745)
  24. # include "is31fl3745-mono.h"
  25. #elif defined(LED_MATRIX_IS31FL3746A)
  26. # include "is31fl3746a-mono.h"
  27. #elif defined(LED_MATRIX_SNLED27351)
  28. # include "snled27351-mono.h"
  29. #endif
  30. typedef struct {
  31. /* Perform any initialisation required for the other driver functions to work. */
  32. void (*init)(void);
  33. /* Set the brightness of a single LED in the buffer. */
  34. void (*set_value)(int index, uint8_t value);
  35. /* Set the brightness of all LEDS on the keyboard in the buffer. */
  36. void (*set_value_all)(uint8_t value);
  37. /* Flush any buffered changes to the hardware. */
  38. void (*flush)(void);
  39. } led_matrix_driver_t;
  40. extern const led_matrix_driver_t led_matrix_driver;