aboutsummaryrefslogtreecommitdiff
path: root/quantum/led_matrix.h
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/led_matrix.h')
-rw-r--r--quantum/led_matrix.h32
1 files changed, 26 insertions, 6 deletions
diff --git a/quantum/led_matrix.h b/quantum/led_matrix.h
index e4322a150..fd7ef7d29 100644
--- a/quantum/led_matrix.h
+++ b/quantum/led_matrix.h
@@ -28,6 +28,14 @@
28# include "is31fl3731-simple.h" 28# include "is31fl3731-simple.h"
29#endif 29#endif
30 30
31#ifndef LED_MATRIX_LED_FLUSH_LIMIT
32# define LED_MATRIX_LED_FLUSH_LIMIT 16
33#endif
34
35#ifndef LED_MATRIX_LED_PROCESS_LIMIT
36# define LED_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5
37#endif
38
31enum led_matrix_effects { 39enum led_matrix_effects {
32 LED_MATRIX_UNIFORM_BRIGHTNESS = 1, 40 LED_MATRIX_UNIFORM_BRIGHTNESS = 1,
33 // All new effects go above this line 41 // All new effects go above this line
@@ -38,7 +46,7 @@ void led_matrix_set_index_value(int index, uint8_t value);
38void led_matrix_set_index_value_all(uint8_t value); 46void led_matrix_set_index_value_all(uint8_t value);
39 47
40// This runs after another backlight effect and replaces 48// This runs after another backlight effect and replaces
41// colors already set 49// values already set
42void led_matrix_indicators(void); 50void led_matrix_indicators(void);
43void led_matrix_indicators_kb(void); 51void led_matrix_indicators_kb(void);
44void led_matrix_indicators_user(void); 52void led_matrix_indicators_user(void);
@@ -62,21 +70,33 @@ bool process_led_matrix(uint16_t keycode, keyrecord_t *record);
62uint32_t led_matrix_get_tick(void); 70uint32_t led_matrix_get_tick(void);
63 71
64void led_matrix_toggle(void); 72void led_matrix_toggle(void);
73void led_matrix_toggle_noeeprom(void);
65void led_matrix_enable(void); 74void led_matrix_enable(void);
66void led_matrix_enable_noeeprom(void); 75void led_matrix_enable_noeeprom(void);
67void led_matrix_disable(void); 76void led_matrix_disable(void);
68void led_matrix_disable_noeeprom(void); 77void led_matrix_disable_noeeprom(void);
78uint8_t led_matrix_is_enabled(void);
79void led_matrix_mode(uint8_t mode);
80void led_matrix_mode_noeeprom(uint8_t mode);
81uint8_t led_matrix_get_mode(void);
69void led_matrix_step(void); 82void led_matrix_step(void);
83void led_matrix_step_noeeprom(void);
70void led_matrix_step_reverse(void); 84void led_matrix_step_reverse(void);
85void led_matrix_step_reverse_noeeprom(void);
86void led_matrix_set_val(uint8_t val);
87void led_matrix_set_val_noeeprom(uint8_t val);
88uint8_t led_matrix_get_val(void);
71void led_matrix_increase_val(void); 89void led_matrix_increase_val(void);
90void led_matrix_increase_val_noeeprom(void);
72void led_matrix_decrease_val(void); 91void led_matrix_decrease_val(void);
92void led_matrix_decrease_val_noeeprom(void);
93void led_matrix_set_speed(uint8_t speed);
94void led_matrix_set_speed_noeeprom(uint8_t speed);
95uint8_t led_matrix_get_speed(void);
73void led_matrix_increase_speed(void); 96void led_matrix_increase_speed(void);
97void led_matrix_increase_speed_noeeprom(void);
74void led_matrix_decrease_speed(void); 98void led_matrix_decrease_speed(void);
75void led_matrix_mode(uint8_t mode, bool eeprom_write); 99void led_matrix_decrease_speed_noeeprom(void);
76void led_matrix_mode_noeeprom(uint8_t mode);
77uint8_t led_matrix_get_mode(void);
78void led_matrix_set_value(uint8_t mode);
79void led_matrix_set_value_noeeprom(uint8_t mode);
80 100
81typedef struct { 101typedef struct {
82 /* Perform any initialisation required for the other driver functions to work. */ 102 /* Perform any initialisation required for the other driver functions to work. */