diff options
author | Joel Challis <[email protected]> | 2020-03-06 12:49:45 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-03-06 12:49:45 +0000 |
commit | 918a85d342aa608deac1650ddd0692dd1717c5e3 (patch) | |
tree | 6de4d888cd8b6dba52ebf2fd82125e79762ad1a6 /quantum/backlight/backlight.h | |
parent | 116c0e44a1a4999c54019e48337c0e6b92a710f8 (diff) | |
download | qmk_firmware-918a85d342aa608deac1650ddd0692dd1717c5e3.tar.gz qmk_firmware-918a85d342aa608deac1650ddd0692dd1717c5e3.zip |
Refactor more backlight to a common location (#8292)0.8.15
* Refactor more backlight to a common location
* BACKLIGHT_PIN not defined for custom backlight
* align function names
Diffstat (limited to 'quantum/backlight/backlight.h')
-rw-r--r-- | quantum/backlight/backlight.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/quantum/backlight/backlight.h b/quantum/backlight/backlight.h index 08acf942ff..07a4880e9f 100644 --- a/quantum/backlight/backlight.h +++ b/quantum/backlight/backlight.h @@ -26,6 +26,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. # error "Maximum value of BACKLIGHT_LEVELS is 31" #endif +#ifndef BACKLIGHT_ON_STATE +# define BACKLIGHT_ON_STATE 1 +#endif + #ifndef BREATHING_PERIOD # define BREATHING_PERIOD 6 #endif @@ -40,6 +44,10 @@ typedef union { }; } backlight_config_t; +void backlight_pins_init(void); +void backlight_pins_on(void); +void backlight_pins_off(void); + void backlight_init(void); void backlight_toggle(void); void backlight_enable(void); |