Move backlight config to data driven, part 1 (#19887)
This commit is contained in:
		
							parent
							
								
									4b69225c22
								
							
						
					
					
						commit
						9c0ce80d7e
					
				
					 128 changed files with 110 additions and 131 deletions
				
			
		| 
						 | 
				
			
			@ -18,7 +18,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
 | 
			
		||||
// Add backwards compatibility for existing keymaps
 | 
			
		||||
static inline void backlight_set_value(uint8_t index, uint8_t level) {
 | 
			
		||||
  static const uint8_t backlight_pins[BACKLIGHT_LED_COUNT] = BACKLIGHT_PINS;
 | 
			
		||||
  static const uint8_t backlight_pins[] = BACKLIGHT_PINS;
 | 
			
		||||
  if (level) {
 | 
			
		||||
      setPinOutput(backlight_pins[index]);
 | 
			
		||||
  } else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue