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_code.h | |
| parent | d6215ad6aff3857cea8a6877b56a547a76ab13ac (diff) | |
| download | qmk_firmware-4931510ad38aadb1769c9241bfad0c3d77ad687f.tar.gz qmk_firmware-4931510ad38aadb1769c9241bfad0c3d77ad687f.zip | |
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_code.h')
| -rw-r--r-- | tmk_core/common/action_code.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tmk_core/common/action_code.h b/tmk_core/common/action_code.h index b15aaa0eb..05bc84573 100644 --- a/tmk_core/common/action_code.h +++ b/tmk_core/common/action_code.h | |||
| @@ -304,7 +304,8 @@ enum backlight_opt { | |||
| 304 | BACKLIGHT_DECREASE = 1, | 304 | BACKLIGHT_DECREASE = 1, |
| 305 | BACKLIGHT_TOGGLE = 2, | 305 | BACKLIGHT_TOGGLE = 2, |
| 306 | BACKLIGHT_STEP = 3, | 306 | BACKLIGHT_STEP = 3, |
| 307 | BACKLIGHT_LEVEL = 4, | 307 | BACKLIGHT_ON = 4, |
| 308 | BACKLIGHT_OFF = 5, | ||
| 308 | }; | 309 | }; |
| 309 | 310 | ||
| 310 | /* Macro */ | 311 | /* Macro */ |
| @@ -316,7 +317,8 @@ enum backlight_opt { | |||
| 316 | #define ACTION_BACKLIGHT_DECREASE() ACTION(ACT_BACKLIGHT, BACKLIGHT_DECREASE << 8) | 317 | #define ACTION_BACKLIGHT_DECREASE() ACTION(ACT_BACKLIGHT, BACKLIGHT_DECREASE << 8) |
| 317 | #define ACTION_BACKLIGHT_TOGGLE() ACTION(ACT_BACKLIGHT, BACKLIGHT_TOGGLE << 8) | 318 | #define ACTION_BACKLIGHT_TOGGLE() ACTION(ACT_BACKLIGHT, BACKLIGHT_TOGGLE << 8) |
| 318 | #define ACTION_BACKLIGHT_STEP() ACTION(ACT_BACKLIGHT, BACKLIGHT_STEP << 8) | 319 | #define ACTION_BACKLIGHT_STEP() ACTION(ACT_BACKLIGHT, BACKLIGHT_STEP << 8) |
| 319 | #define ACTION_BACKLIGHT_LEVEL(level) ACTION(ACT_BACKLIGHT, BACKLIGHT_LEVEL << 8 | (level)) | 320 | #define ACTION_BACKLIGHT_ON() ACTION(ACT_BACKLIGHT, BACKLIGHT_ON << 8) |
| 321 | #define ACTION_BACKLIGHT_OFF() ACTION(ACT_BACKLIGHT, BACKLIGHT_OFF << 8) | ||
| 320 | /* Command */ | 322 | /* Command */ |
| 321 | #define ACTION_COMMAND(id, opt) ACTION(ACT_COMMAND, (opt)<<8 | (id)) | 323 | #define ACTION_COMMAND(id, opt) ACTION(ACT_COMMAND, (opt)<<8 | (id)) |
| 322 | /* Function */ | 324 | /* Function */ |
