From 918a85d342aa608deac1650ddd0692dd1717c5e3 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Fri, 6 Mar 2020 12:49:45 +0000 Subject: Refactor more backlight to a common location (#8292) * Refactor more backlight to a common location * BACKLIGHT_PIN not defined for custom backlight * align function names --- quantum/backlight/backlight.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'quantum/backlight/backlight.h') diff --git a/quantum/backlight/backlight.h b/quantum/backlight/backlight.h index 08acf942f..07a4880e9 100644 --- a/quantum/backlight/backlight.h +++ b/quantum/backlight/backlight.h @@ -26,6 +26,10 @@ along with this program. If not, see . # 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); -- cgit v1.2.3