diff options
| author | Takeshi ISHII <2170248+mtei@users.noreply.github.com> | 2019-05-02 23:59:29 +0900 |
|---|---|---|
| committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-05-02 07:59:29 -0700 |
| commit | 3da8d46a07167fc862e90b6bb232812d5cb64651 (patch) | |
| tree | 5af2e45ad1349b21afb075441a5032897e3b812d /quantum/rgblight.h | |
| parent | 4db31fb374d365bfa0f5c8a25d089bb2f967352f (diff) | |
| download | qmk_firmware-3da8d46a07167fc862e90b6bb232812d5cb64651.tar.gz qmk_firmware-3da8d46a07167fc862e90b6bb232812d5cb64651.zip | |
If RGBLIGHT_EFFECT_BREATHE_CENTER is undefined, use fixed breathe table instead of exp() and sin() (#5484)
* If RGBLIGHT_EFFECT_BREATHE_CENTER is undefined, use fixed breathe table instead of exp() and sin()
* Change rgblight breathing table size to be easily selectable.
add RGBLIGHT_BREATHE_TABLE_SIZE macro for customize breathing effect.
Diffstat (limited to 'quantum/rgblight.h')
| -rw-r--r-- | quantum/rgblight.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/quantum/rgblight.h b/quantum/rgblight.h index 9ccb3135c..35d7942ca 100644 --- a/quantum/rgblight.h +++ b/quantum/rgblight.h | |||
| @@ -80,9 +80,7 @@ enum RGBLIGHT_EFFECT_MODE { | |||
| 80 | 80 | ||
| 81 | #define RGBLIGHT_MODES (RGBLIGHT_MODE_last-1) | 81 | #define RGBLIGHT_MODES (RGBLIGHT_MODE_last-1) |
| 82 | 82 | ||
| 83 | #ifndef RGBLIGHT_EFFECT_BREATHE_CENTER | 83 | // sample: #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 |
| 84 | #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1-2.7 | ||
| 85 | #endif | ||
| 86 | 84 | ||
| 87 | #ifndef RGBLIGHT_EFFECT_BREATHE_MAX | 85 | #ifndef RGBLIGHT_EFFECT_BREATHE_MAX |
| 88 | #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0-255 | 86 | #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0-255 |
