diff options
author | Balz Guenat <balz.guenat@gmail.com> | 2018-01-01 23:47:51 +0100 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2018-01-01 17:47:51 -0500 |
commit | 4931510ad38aadb1769c9241bfad0c3d77ad687f (patch) | |
tree | b2e23ebbde408a3f6580b34e8cf3332346e7c3f3 /tmk_core/common/action.c | |
parent | d6215ad6aff3857cea8a6877b56a547a76ab13ac (diff) | |
download | qmk_firmware-4931510ad38aadb1769c9241bfad0c3d77ad687f.tar.gz |
backlight breathing overhaul (#2187)
* add breathing to bananasplit
* backlight breathing overhaul
* fix the backlight_tick thing.
* fix for vision_division backlight
* fix a few keymaps and probably break breathing for some weirdly set-up boards.
* remove BL_x keycodes because they made unreasonable assumptions
* some fixes for BL keycodes
* integer cie lightness scaling
* use cie lightness for non-breathing backlight and make breathing able to reach true max brightness
Diffstat (limited to 'tmk_core/common/action.c')
-rw-r--r-- | tmk_core/common/action.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c index b39aa4cbc..dd3a5b3ee 100644 --- a/tmk_core/common/action.c +++ b/tmk_core/common/action.c @@ -512,8 +512,11 @@ void process_action(keyrecord_t *record, action_t action) case BACKLIGHT_STEP: backlight_step(); break; - case BACKLIGHT_LEVEL: - backlight_level(action.backlight.level); + case BACKLIGHT_ON: + backlight_level(BACKLIGHT_LEVELS); + break; + case BACKLIGHT_OFF: + backlight_level(0); break; } } |