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/template/avr/config.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/template/avr/config.h')
| -rw-r--r-- | quantum/template/avr/config.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/quantum/template/avr/config.h b/quantum/template/avr/config.h index a9bb75482..48d7afb14 100644 --- a/quantum/template/avr/config.h +++ b/quantum/template/avr/config.h | |||
| @@ -77,6 +77,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 77 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | 77 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT |
| 78 | // #define RGBLIGHT_EFFECT_RGB_TEST | 78 | // #define RGBLIGHT_EFFECT_RGB_TEST |
| 79 | // #define RGBLIGHT_EFFECT_ALTERNATING | 79 | // #define RGBLIGHT_EFFECT_ALTERNATING |
| 80 | // /*== customize breathing effect ==*/ | ||
| 81 | // /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 82 | // #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 83 | // /*==== use exp() and sin() ====*/ | ||
| 84 | // #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 85 | // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 80 | // #endif | 86 | // #endif |
| 81 | 87 | ||
| 82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 88 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
