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
This commit is contained in:
parent
d6215ad6af
commit
4931510ad3
25 changed files with 285 additions and 329 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue