Migrate led_update_kb implementations to DD (#23985)
				
					
				
			This commit is contained in:
		
							parent
							
								
									751482580e
								
							
						
					
					
						commit
						a2176f6a03
					
				
					 39 changed files with 77 additions and 533 deletions
				
			
		| 
						 | 
				
			
			@ -33,12 +33,3 @@ __attribute__((weak)) layer_state_t layer_state_set_user(layer_state_t state) {
 | 
			
		|||
    gpio_write_pin(D5, layer_state_cmp(state, 1));
 | 
			
		||||
    return state;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool led_update_kb(led_t led_state) {
 | 
			
		||||
    bool res = led_update_user(led_state);
 | 
			
		||||
    if (res) {
 | 
			
		||||
        // gpio_write_pin sets the pin high for 1 and low for 0.
 | 
			
		||||
        gpio_write_pin(D4, led_state.caps_lock);
 | 
			
		||||
    }
 | 
			
		||||
    return res;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue