[Keyboard] Update default keymaps to use layer_state_t (#7444)
				
					
				
			* Update default keymaps to use `layer_state_t` * Convert binon32 as get_highest_layer in default keymaps
This commit is contained in:
		
							parent
							
								
									f0a9c10b6d
								
							
						
					
					
						commit
						6cf574396a
					
				
					 34 changed files with 44 additions and 47 deletions
				
			
		| 
						 | 
				
			
			@ -83,9 +83,9 @@ void led_set_user(uint8_t usb_led) {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
//function for layer indicator LED
 | 
			
		||||
uint32_t layer_state_set_user(uint32_t state)
 | 
			
		||||
layer_state_t layer_state_set_user(layer_state_t state)
 | 
			
		||||
{
 | 
			
		||||
    if (biton32(state) == 1) {
 | 
			
		||||
    if (get_highest_layer(state) == 1) {
 | 
			
		||||
    writePinHigh(B3);
 | 
			
		||||
	} else {
 | 
			
		||||
		writePinLow(B3);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue