diff options
Diffstat (limited to 'quantum/led_matrix.c')
| -rw-r--r-- | quantum/led_matrix.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/quantum/led_matrix.c b/quantum/led_matrix.c index 4f1f06c7a..1cbd908c7 100644 --- a/quantum/led_matrix.c +++ b/quantum/led_matrix.c | |||
| @@ -17,9 +17,6 @@ | |||
| 17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 | */ | 18 | */ |
| 19 | 19 | ||
| 20 | #include <stdint.h> | ||
| 21 | #include <stdbool.h> | ||
| 22 | #include "quantum.h" | ||
| 23 | #include "led_matrix.h" | 20 | #include "led_matrix.h" |
| 24 | #include "progmem.h" | 21 | #include "progmem.h" |
| 25 | #include "config.h" | 22 | #include "config.h" |
| @@ -45,10 +42,6 @@ led_eeconfig_t led_matrix_eeconfig; | |||
| 45 | # define LED_DISABLE_WHEN_USB_SUSPENDED false | 42 | # define LED_DISABLE_WHEN_USB_SUSPENDED false |
| 46 | #endif | 43 | #endif |
| 47 | 44 | ||
| 48 | #ifndef EECONFIG_LED_MATRIX | ||
| 49 | # define EECONFIG_LED_MATRIX EECONFIG_RGBLIGHT | ||
| 50 | #endif | ||
| 51 | |||
| 52 | #if !defined(LED_MATRIX_MAXIMUM_BRIGHTNESS) || LED_MATRIX_MAXIMUM_BRIGHTNESS > 255 | 45 | #if !defined(LED_MATRIX_MAXIMUM_BRIGHTNESS) || LED_MATRIX_MAXIMUM_BRIGHTNESS > 255 |
| 53 | # define LED_MATRIX_MAXIMUM_BRIGHTNESS 255 | 46 | # define LED_MATRIX_MAXIMUM_BRIGHTNESS 255 |
| 54 | #endif | 47 | #endif |
| @@ -135,7 +128,7 @@ void led_matrix_set_suspend_state(bool state) { g_suspend_state = state; } | |||
| 135 | void led_matrix_all_off(void) { led_matrix_set_index_value_all(0); } | 128 | void led_matrix_all_off(void) { led_matrix_set_index_value_all(0); } |
| 136 | 129 | ||
| 137 | // Uniform brightness | 130 | // Uniform brightness |
| 138 | void led_matrix_uniform_brightness(void) { led_matrix_set_index_value_all(LED_MATRIX_MAXIMUM_BRIGHTNESS / BACKLIGHT_LEVELS * led_matrix_eeconfig.val); } | 131 | void led_matrix_uniform_brightness(void) { led_matrix_set_index_value_all(led_matrix_eeconfig.val); } |
| 139 | 132 | ||
| 140 | void led_matrix_custom(void) {} | 133 | void led_matrix_custom(void) {} |
| 141 | 134 | ||
| @@ -344,5 +337,3 @@ void led_matrix_set_value(uint8_t val) { | |||
| 344 | led_matrix_set_value_noeeprom(val); | 337 | led_matrix_set_value_noeeprom(val); |
| 345 | eeconfig_update_led_matrix(led_matrix_eeconfig.raw); | 338 | eeconfig_update_led_matrix(led_matrix_eeconfig.raw); |
| 346 | } | 339 | } |
| 347 | |||
| 348 | void backlight_set(uint8_t val) { led_matrix_set_value(val); } | ||
