Limit RGB max brightness on KPrepublic BM-series keyboards (#13132)
parent
23becac3a6
commit
26ea090190
|
@ -49,7 +49,9 @@
|
||||||
#define DRIVER_LED_TOTAL 53
|
#define DRIVER_LED_TOTAL 53
|
||||||
#ifdef RGB_DI_PIN
|
#ifdef RGB_DI_PIN
|
||||||
# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
|
# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
|
||||||
|
# define RGBLIGHT_LIMIT_VAL 180 // Limit to vendor-recommended value
|
||||||
#endif
|
#endif
|
||||||
#ifndef RGB_DISABLE_WHEN_USB_SUSPENDED
|
#ifndef RGB_DISABLE_WHEN_USB_SUSPENDED
|
||||||
# define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
|
# define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
|
||||||
|
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 // Limit to vendor-recommended value
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -55,7 +55,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#define RGBLIGHT_HUE_STEP 8
|
#define RGBLIGHT_HUE_STEP 8
|
||||||
#define RGBLIGHT_SAT_STEP 8
|
#define RGBLIGHT_SAT_STEP 8
|
||||||
#define RGBLIGHT_VAL_STEP 8
|
#define RGBLIGHT_VAL_STEP 8
|
||||||
#define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
|
#define RGBLIGHT_LIMIT_VAL 180 // Limit to vendor-recommended value
|
||||||
#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
|
#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
|
||||||
/*== all animations enable ==*/
|
/*== all animations enable ==*/
|
||||||
#define RGBLIGHT_ANIMATIONS
|
#define RGBLIGHT_ANIMATIONS
|
||||||
|
@ -70,3 +70,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
// #define RGBLIGHT_EFFECT_RGB_TEST
|
// #define RGBLIGHT_EFFECT_RGB_TEST
|
||||||
// #define RGBLIGHT_EFFECT_ALTERNATING
|
// #define RGBLIGHT_EFFECT_ALTERNATING
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 // Limit to vendor-recommended value
|
||||||
|
#endif
|
||||||
|
|
|
@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#define RGBLIGHT_HUE_STEP 8
|
#define RGBLIGHT_HUE_STEP 8
|
||||||
#define RGBLIGHT_SAT_STEP 8
|
#define RGBLIGHT_SAT_STEP 8
|
||||||
#define RGBLIGHT_VAL_STEP 8
|
#define RGBLIGHT_VAL_STEP 8
|
||||||
#define RGBLIGHT_LIMIT_VAL 5 /* The maximum brightness level */
|
#define RGBLIGHT_LIMIT_VAL 180 // Limit to vendor-recommended value
|
||||||
#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
|
#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
|
||||||
/*== all animations enable ==*/
|
/*== all animations enable ==*/
|
||||||
#define RGBLIGHT_ANIMATIONS
|
#define RGBLIGHT_ANIMATIONS
|
||||||
|
@ -68,3 +68,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
// #define RGBLIGHT_EFFECT_RGB_TEST
|
// #define RGBLIGHT_EFFECT_RGB_TEST
|
||||||
// #define RGBLIGHT_EFFECT_ALTERNATING
|
// #define RGBLIGHT_EFFECT_ALTERNATING
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 // Limit to vendor-recommended value
|
||||||
|
#endif
|
||||||
|
|
|
@ -52,6 +52,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#ifdef RGB_DI_PIN
|
#ifdef RGB_DI_PIN
|
||||||
# define RGBLED_NUM 69
|
# define RGBLED_NUM 69
|
||||||
# define RGB_MATRIX_KEYPRESSES
|
# define RGB_MATRIX_KEYPRESSES
|
||||||
|
# define RGBLIGHT_LIMIT_VAL 180 // Limit to vendor-recommended value
|
||||||
|
#endif
|
||||||
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 // Limit to vendor-recommended value
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// generated by KBFirmware JSON to QMK Parser
|
// generated by KBFirmware JSON to QMK Parser
|
||||||
|
|
|
@ -55,7 +55,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
// #define RGBLIGHT_HUE_STEP 8
|
// #define RGBLIGHT_HUE_STEP 8
|
||||||
// #define RGBLIGHT_SAT_STEP 8
|
// #define RGBLIGHT_SAT_STEP 8
|
||||||
// #define RGBLIGHT_VAL_STEP 8
|
// #define RGBLIGHT_VAL_STEP 8
|
||||||
// #define RGBLIGHT_LIMIT_VAL 180 /* The maximum brightness level */
|
# define RGBLIGHT_LIMIT_VAL 180 // Limit to vendor-recommended value
|
||||||
// #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
|
// #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
|
||||||
/*== all animations enable ==*/
|
/*== all animations enable ==*/
|
||||||
// #define RGBLIGHT_ANIMATIONS
|
// #define RGBLIGHT_ANIMATIONS
|
||||||
|
@ -70,3 +70,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
// #define RGBLIGHT_EFFECT_RGB_TEST
|
// #define RGBLIGHT_EFFECT_RGB_TEST
|
||||||
// #define RGBLIGHT_EFFECT_ALTERNATING
|
// #define RGBLIGHT_EFFECT_ALTERNATING
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 // Limit to vendor-recommended value
|
||||||
|
#endif
|
||||||
|
|
|
@ -58,6 +58,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#ifdef RGB_DI_PIN
|
#ifdef RGB_DI_PIN
|
||||||
# define RGBLED_NUM 74
|
# define RGBLED_NUM 74
|
||||||
# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
|
# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
|
||||||
|
# define RGBLIGHT_LIMIT_VAL 180 // Limit to vendor-recommended value
|
||||||
|
#endif
|
||||||
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 // Limit to vendor-recommended value
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||||
|
|
Loading…
Reference in New Issue