diff options
| author | Phillip Tennen <phillip.ennen@gmail.com> | 2018-11-14 16:45:46 +0100 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2018-11-14 07:45:46 -0800 |
| commit | 0cda2f43e2c95fe5dd440e6391ae807f508b040b (patch) | |
| tree | 05d9cd5db86789ca0f475f43db7b0fbcb6251f1d /tmk_core/common/backlight.h | |
| parent | f7fcba329dbd659a4bb37acdf7e2dc24204a81c8 (diff) | |
| download | qmk_firmware-0cda2f43e2c95fe5dd440e6391ae807f508b040b.tar.gz qmk_firmware-0cda2f43e2c95fe5dd440e6391ae807f508b040b.zip | |
Backlight status functions (#4259)
* add functions to set specific backlight state
* add function to query backlight state
* update documentation with new backlight functions
* Update tmk_core/common/backlight.c
Co-Authored-By: codyd51 <phillip.ennen@gmail.com>
* Update tmk_core/common/backlight.h
Co-Authored-By: codyd51 <phillip.ennen@gmail.com>
* update docs for is_backlight_enabled() name change
Diffstat (limited to 'tmk_core/common/backlight.h')
| -rw-r--r-- | tmk_core/common/backlight.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tmk_core/common/backlight.h b/tmk_core/common/backlight.h index ef8ab9b2b..420c9d19e 100644 --- a/tmk_core/common/backlight.h +++ b/tmk_core/common/backlight.h | |||
| @@ -32,7 +32,11 @@ void backlight_init(void); | |||
| 32 | void backlight_increase(void); | 32 | void backlight_increase(void); |
| 33 | void backlight_decrease(void); | 33 | void backlight_decrease(void); |
| 34 | void backlight_toggle(void); | 34 | void backlight_toggle(void); |
| 35 | void backlight_enable(void); | ||
| 36 | void backlight_disable(void); | ||
| 37 | bool is_backlight_enabled(void); | ||
| 35 | void backlight_step(void); | 38 | void backlight_step(void); |
| 36 | void backlight_set(uint8_t level); | 39 | void backlight_set(uint8_t level); |
| 37 | void backlight_level(uint8_t level); | 40 | void backlight_level(uint8_t level); |
| 38 | uint8_t get_backlight_level(void); | 41 | uint8_t get_backlight_level(void); |
| 42 | |||
