Update GPIO API usage in keyboard code (#23361)
This commit is contained in:
		
							parent
							
								
									5426a7a129
								
							
						
					
					
						commit
						d09a06a1b3
					
				
					 390 changed files with 3912 additions and 3913 deletions
				
			
		| 
						 | 
				
			
			@ -24,8 +24,8 @@ static enum { UNKNOWN, LEFT, RIGHT } hand_side = UNKNOWN;
 | 
			
		|||
    if (hand_side == UNKNOWN) {
 | 
			
		||||
        #if defined(SPLIT_HAND_PIN)
 | 
			
		||||
            // Test pin SPLIT_HAND_PIN for High/Low, if low it's right hand
 | 
			
		||||
            setPinInput(SPLIT_HAND_PIN);
 | 
			
		||||
            hand_side = readPin(SPLIT_HAND_PIN) ? LEFT : RIGHT;
 | 
			
		||||
            gpio_set_pin_input(SPLIT_HAND_PIN);
 | 
			
		||||
            hand_side = gpio_read_pin(SPLIT_HAND_PIN) ? LEFT : RIGHT;
 | 
			
		||||
            return (hand_side == LEFT);
 | 
			
		||||
        #endif
 | 
			
		||||
        hand_side = is_keyboard_master() ? LEFT : RIGHT;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue