Add missing rgb matrix default parameters (#22281)
This commit is contained in:
parent
ca7b2d63a7
commit
734c7afa7d
@ -365,6 +365,7 @@ For inspiration and examples, check out the built-in effects under `quantum/led_
|
|||||||
#define LED_MATRIX_DEFAULT_MODE LED_MATRIX_SOLID // Sets the default mode, if none has been set
|
#define LED_MATRIX_DEFAULT_MODE LED_MATRIX_SOLID // Sets the default mode, if none has been set
|
||||||
#define LED_MATRIX_DEFAULT_VAL LED_MATRIX_MAXIMUM_BRIGHTNESS // Sets the default brightness value, if none has been set
|
#define LED_MATRIX_DEFAULT_VAL LED_MATRIX_MAXIMUM_BRIGHTNESS // Sets the default brightness value, if none has been set
|
||||||
#define LED_MATRIX_DEFAULT_SPD 127 // Sets the default animation speed, if none has been set
|
#define LED_MATRIX_DEFAULT_SPD 127 // Sets the default animation speed, if none has been set
|
||||||
|
#define LED_MATRIX_DEFAULT_FLAGS LED_FLAG_ALL // Sets the default LED flags, if none has been set
|
||||||
#define LED_MATRIX_SPLIT { X, Y } // (Optional) For split keyboards, the number of LEDs connected on each half. X = left, Y = Right.
|
#define LED_MATRIX_SPLIT { X, Y } // (Optional) For split keyboards, the number of LEDs connected on each half. X = left, Y = Right.
|
||||||
// If reactive effects are enabled, you also will want to enable SPLIT_TRANSPORT_MIRROR
|
// If reactive effects are enabled, you also will want to enable SPLIT_TRANSPORT_MIRROR
|
||||||
```
|
```
|
||||||
|
@ -873,12 +873,13 @@ These are defined in [`color.h`](https://github.com/qmk/qmk_firmware/blob/master
|
|||||||
#define RGB_MATRIX_LED_PROCESS_LIMIT (RGB_MATRIX_LED_COUNT + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
|
#define RGB_MATRIX_LED_PROCESS_LIMIT (RGB_MATRIX_LED_COUNT + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
|
||||||
#define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness)
|
#define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness)
|
||||||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
|
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
|
||||||
|
#define RGB_MATRIX_DEFAULT_ON true // Sets the default enabled state, if none has been set
|
||||||
#define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT // Sets the default mode, if none has been set
|
#define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT // Sets the default mode, if none has been set
|
||||||
#define RGB_MATRIX_DEFAULT_HUE 0 // Sets the default hue value, if none has been set
|
#define RGB_MATRIX_DEFAULT_HUE 0 // Sets the default hue value, if none has been set
|
||||||
#define RGB_MATRIX_DEFAULT_SAT 255 // Sets the default saturation value, if none has been set
|
#define RGB_MATRIX_DEFAULT_SAT 255 // Sets the default saturation value, if none has been set
|
||||||
#define RGB_MATRIX_DEFAULT_ON true // Sets the default enabled state, if none has been set
|
|
||||||
#define RGB_MATRIX_DEFAULT_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS // Sets the default brightness value, if none has been set
|
#define RGB_MATRIX_DEFAULT_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS // Sets the default brightness value, if none has been set
|
||||||
#define RGB_MATRIX_DEFAULT_SPD 127 // Sets the default animation speed, if none has been set
|
#define RGB_MATRIX_DEFAULT_SPD 127 // Sets the default animation speed, if none has been set
|
||||||
|
#define RGB_MATRIX_DEFAULT_FLAGS LED_FLAG_ALL // Sets the default LED flags, if none has been set
|
||||||
#define RGB_MATRIX_DISABLE_KEYCODES // disables control of rgb matrix by keycodes (must use code functions to control the feature)
|
#define RGB_MATRIX_DISABLE_KEYCODES // disables control of rgb matrix by keycodes (must use code functions to control the feature)
|
||||||
#define RGB_MATRIX_SPLIT { X, Y } // (Optional) For split keyboards, the number of LEDs connected on each half. X = left, Y = Right.
|
#define RGB_MATRIX_SPLIT { X, Y } // (Optional) For split keyboards, the number of LEDs connected on each half. X = left, Y = Right.
|
||||||
// If reactive effects are enabled, you also will want to enable SPLIT_TRANSPORT_MIRROR
|
// If reactive effects are enabled, you also will want to enable SPLIT_TRANSPORT_MIRROR
|
||||||
|
@ -98,7 +98,7 @@ void eeconfig_update_led_matrix_default(void) {
|
|||||||
led_matrix_eeconfig.mode = LED_MATRIX_DEFAULT_MODE;
|
led_matrix_eeconfig.mode = LED_MATRIX_DEFAULT_MODE;
|
||||||
led_matrix_eeconfig.val = LED_MATRIX_DEFAULT_VAL;
|
led_matrix_eeconfig.val = LED_MATRIX_DEFAULT_VAL;
|
||||||
led_matrix_eeconfig.speed = LED_MATRIX_DEFAULT_SPD;
|
led_matrix_eeconfig.speed = LED_MATRIX_DEFAULT_SPD;
|
||||||
led_matrix_eeconfig.flags = LED_FLAG_ALL;
|
led_matrix_eeconfig.flags = LED_MATRIX_DEFAULT_FLAGS;
|
||||||
eeconfig_flush_led_matrix(true);
|
eeconfig_flush_led_matrix(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,6 +58,10 @@
|
|||||||
# define LED_MATRIX_DEFAULT_SPD UINT8_MAX / 2
|
# define LED_MATRIX_DEFAULT_SPD UINT8_MAX / 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef LED_MATRIX_DEFAULT_FLAGS
|
||||||
|
# define LED_MATRIX_DEFAULT_FLAGS LED_FLAG_ALL
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef LED_MATRIX_LED_FLUSH_LIMIT
|
#ifndef LED_MATRIX_LED_FLUSH_LIMIT
|
||||||
# define LED_MATRIX_LED_FLUSH_LIMIT 16
|
# define LED_MATRIX_LED_FLUSH_LIMIT 16
|
||||||
#endif
|
#endif
|
||||||
|
@ -100,7 +100,7 @@ void eeconfig_update_rgb_matrix_default(void) {
|
|||||||
rgb_matrix_config.mode = RGB_MATRIX_DEFAULT_MODE;
|
rgb_matrix_config.mode = RGB_MATRIX_DEFAULT_MODE;
|
||||||
rgb_matrix_config.hsv = (HSV){RGB_MATRIX_DEFAULT_HUE, RGB_MATRIX_DEFAULT_SAT, RGB_MATRIX_DEFAULT_VAL};
|
rgb_matrix_config.hsv = (HSV){RGB_MATRIX_DEFAULT_HUE, RGB_MATRIX_DEFAULT_SAT, RGB_MATRIX_DEFAULT_VAL};
|
||||||
rgb_matrix_config.speed = RGB_MATRIX_DEFAULT_SPD;
|
rgb_matrix_config.speed = RGB_MATRIX_DEFAULT_SPD;
|
||||||
rgb_matrix_config.flags = LED_FLAG_ALL;
|
rgb_matrix_config.flags = RGB_MATRIX_DEFAULT_FLAGS;
|
||||||
eeconfig_flush_rgb_matrix(true);
|
eeconfig_flush_rgb_matrix(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,6 +78,10 @@
|
|||||||
# define RGB_MATRIX_DEFAULT_SPD UINT8_MAX / 2
|
# define RGB_MATRIX_DEFAULT_SPD UINT8_MAX / 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef RGB_MATRIX_DEFAULT_FLAGS
|
||||||
|
# define RGB_MATRIX_DEFAULT_FLAGS LED_FLAG_ALL
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef RGB_MATRIX_LED_FLUSH_LIMIT
|
#ifndef RGB_MATRIX_LED_FLUSH_LIMIT
|
||||||
# define RGB_MATRIX_LED_FLUSH_LIMIT 16
|
# define RGB_MATRIX_LED_FLUSH_LIMIT 16
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user