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
This commit is contained in:
		
							parent
							
								
									116c0e44a1
								
							
						
					
					
						commit
						918a85d342
					
				
					 5 changed files with 78 additions and 112 deletions
				
			
		| 
						 | 
				
			
			@ -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);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue