mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-04-05 05:15:38 +00:00
Merge remote-tracking branch 'origin/develop' into xap
This commit is contained in:
commit
d428f579e0
@ -461,6 +461,9 @@ void via_qmk_backlight_set_value(uint8_t *data) {
|
|||||||
#endif // #if defined(VIA_QMK_BACKLIGHT_ENABLE)
|
#endif // #if defined(VIA_QMK_BACKLIGHT_ENABLE)
|
||||||
|
|
||||||
#if defined(VIA_QMK_RGBLIGHT_ENABLE)
|
#if defined(VIA_QMK_RGBLIGHT_ENABLE)
|
||||||
|
# ifndef RGBLIGHT_LIMIT_VAL
|
||||||
|
# define RGBLIGHT_LIMIT_VAL 255
|
||||||
|
# endif
|
||||||
|
|
||||||
void via_qmk_rgblight_get_value(uint8_t *data) {
|
void via_qmk_rgblight_get_value(uint8_t *data) {
|
||||||
uint8_t *value_id = &(data[0]);
|
uint8_t *value_id = &(data[0]);
|
||||||
@ -518,6 +521,11 @@ void via_qmk_rgblight_set_value(uint8_t *data) {
|
|||||||
|
|
||||||
#if defined(VIA_QMK_RGB_MATRIX_ENABLE)
|
#if defined(VIA_QMK_RGB_MATRIX_ENABLE)
|
||||||
|
|
||||||
|
# if !defined(RGB_MATRIX_MAXIMUM_BRIGHTNESS) || RGB_MATRIX_MAXIMUM_BRIGHTNESS > UINT8_MAX
|
||||||
|
# undef RGB_MATRIX_MAXIMUM_BRIGHTNESS
|
||||||
|
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS UINT8_MAX
|
||||||
|
# endif
|
||||||
|
|
||||||
// VIA supports only 4 discrete values for effect speed; map these to some
|
// VIA supports only 4 discrete values for effect speed; map these to some
|
||||||
// useful speed values for RGB Matrix.
|
// useful speed values for RGB Matrix.
|
||||||
enum speed_values {
|
enum speed_values {
|
||||||
|
Loading…
Reference in New Issue
Block a user