diff options
Diffstat (limited to 'quantum/rgb_matrix.h')
| -rw-r--r-- | quantum/rgb_matrix.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/quantum/rgb_matrix.h b/quantum/rgb_matrix.h index 046d98790..45caaac42 100644 --- a/quantum/rgb_matrix.h +++ b/quantum/rgb_matrix.h | |||
| @@ -100,8 +100,6 @@ void rgb_matrix_indicators(void); | |||
| 100 | void rgb_matrix_indicators_kb(void); | 100 | void rgb_matrix_indicators_kb(void); |
| 101 | void rgb_matrix_indicators_user(void); | 101 | void rgb_matrix_indicators_user(void); |
| 102 | 102 | ||
| 103 | void rgb_matrix_single_LED_test(void); | ||
| 104 | |||
| 105 | void rgb_matrix_init(void); | 103 | void rgb_matrix_init(void); |
| 106 | void rgb_matrix_setup_drivers(void); | 104 | void rgb_matrix_setup_drivers(void); |
| 107 | 105 | ||
| @@ -126,7 +124,6 @@ void rgb_matrix_decrease(void); | |||
| 126 | // void backlight_get_key_color( uint8_t led, HSV *hsv ); | 124 | // void backlight_get_key_color( uint8_t led, HSV *hsv ); |
| 127 | // void backlight_set_key_color( uint8_t row, uint8_t column, HSV hsv ); | 125 | // void backlight_set_key_color( uint8_t row, uint8_t column, HSV hsv ); |
| 128 | 126 | ||
| 129 | void rgb_matrix_test_led( uint8_t index, bool red, bool green, bool blue ); | ||
| 130 | uint32_t rgb_matrix_get_tick(void); | 127 | uint32_t rgb_matrix_get_tick(void); |
| 131 | 128 | ||
| 132 | void rgblight_toggle(void); | 129 | void rgblight_toggle(void); |
| @@ -143,4 +140,18 @@ void rgblight_decrease_speed(void); | |||
| 143 | void rgblight_mode(uint8_t mode); | 140 | void rgblight_mode(uint8_t mode); |
| 144 | uint32_t rgblight_get_mode(void); | 141 | uint32_t rgblight_get_mode(void); |
| 145 | 142 | ||
| 143 | typedef struct { | ||
| 144 | /* Perform any initialisation required for the other driver functions to work. */ | ||
| 145 | void (*init)(void); | ||
| 146 | |||
| 147 | /* Set the colour of a single LED in the buffer. */ | ||
| 148 | void (*set_color)(int index, uint8_t r, uint8_t g, uint8_t b); | ||
| 149 | /* Set the colour of all LEDS on the keyboard in the buffer. */ | ||
| 150 | void (*set_color_all)(uint8_t r, uint8_t g, uint8_t b); | ||
| 151 | /* Flush any buffered changes to the hardware. */ | ||
| 152 | void (*flush)(void); | ||
| 153 | } rgb_matrix_driver_t; | ||
| 154 | |||
| 155 | extern const rgb_matrix_driver_t rgb_matrix_driver; | ||
| 156 | |||
| 146 | #endif | 157 | #endif |
