Small fix for Sol 3 brightness limits (#16157)
This commit is contained in:
parent
1571f8e258
commit
a33dcb5a9a
2 changed files with 10 additions and 10 deletions
|
@ -88,6 +88,11 @@
|
|||
#define RGB_DI_PIN B5
|
||||
#define RGBLED_NUM 156
|
||||
#define RGBLED_SPLIT { 78, 78 }
|
||||
#define RGBLIGHT_LIMIT_VAL 255
|
||||
|
||||
// RGB Lighting Animation modes. Explicitly enabled
|
||||
// For full list of effects, see:
|
||||
// https://docs.qmk.fm/#/feature_rgblight?id=effect-and-animation-toggles
|
||||
#define RGBLIGHT_EFFECT_BREATHING
|
||||
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
|
||||
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
||||
|
@ -102,11 +107,11 @@
|
|||
#define DRIVER_LED_TOTAL RGBLED_NUM
|
||||
#define RGB_MATRIX_SPLIT RGBLED_SPLIT
|
||||
#define RGB_MATRIX_CENTER { 81, 28 }
|
||||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS RGBLIGHT_LIMIT_VAL
|
||||
#define RGB_MATRIX_LED_FLUSH_LIMIT 33
|
||||
#define RGB_MATRIX_LED_PROCESS_LIMIT 10
|
||||
#define RGB_MATRIX_KEYPRESSES
|
||||
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
|
||||
#define RGB_DISABLE_WHEN_USB_SUSPENDED
|
||||
|
||||
// RGB Matrix Animation modes. Explicitly enabled
|
||||
// For full list of effects, see:
|
||||
// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
|
||||
|
@ -140,9 +145,11 @@
|
|||
#define ENABLE_RGB_MATRIX_PIXEL_FLOW
|
||||
#define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
|
||||
// enabled only if RGB_MATRIX_FRAMEBUFFER_EFFECTS is defined
|
||||
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
|
||||
#define ENABLE_RGB_MATRIX_TYPING_HEATMAP
|
||||
#define ENABLE_RGB_MATRIX_DIGITAL_RAIN
|
||||
// enabled only of RGB_MATRIX_KEYPRESSES or RGB_MATRIX_KEYRELEASES is defined
|
||||
#define RGB_MATRIX_KEYPRESSES
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
|
||||
|
@ -156,13 +163,6 @@
|
|||
#define ENABLE_RGB_MATRIX_SOLID_SPLASH
|
||||
#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
||||
|
||||
#if RGB_UNLIMITED_POWER
|
||||
#define RGBLIGHT_LIMIT_VAL 255
|
||||
#else
|
||||
#define RGBLIGHT_LIMIT_VAL 127
|
||||
#endif
|
||||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS RGBLIGHT_LIMIT_VAL
|
||||
|
||||
#define WS2812_PWM_DRIVER PWMD3
|
||||
#define WS2812_PWM_CHANNEL 2
|
||||
#define WS2812_PWM_PAL_MODE 2
|
||||
|
|
|
@ -39,7 +39,7 @@ const encodermap_t touch_encoder_map[NUMBER_OF_TOUCH_ENCODERS][TOUCH_ENCODER_OPT
|
|||
{ { 7, 7 }, { 6, 7 }, { 8, 7 }, { 11, 6 }, { 11, 7 }, } // Touch Encoder 1 matrix entries
|
||||
};
|
||||
|
||||
static bool limit_lightning = false;
|
||||
static bool limit_lightning = true;
|
||||
|
||||
RGB rgb_matrix_hsv_to_rgb(HSV hsv) {
|
||||
if (limit_lightning) hsv.v /= 2;
|
||||
|
|
Loading…
Reference in a new issue