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
				
			
		| 
						 | 
				
			
			@ -129,11 +129,11 @@ void encoder_triple_click(void) {
 | 
			
		|||
void matrix_init_kb(void) {
 | 
			
		||||
    matrix_init_user();
 | 
			
		||||
 | 
			
		||||
    setPinInputHigh(ENCODER_SWITCH);
 | 
			
		||||
    gpio_set_pin_input_high(ENCODER_SWITCH);
 | 
			
		||||
}
 | 
			
		||||
void matrix_scan_kb(void) {
 | 
			
		||||
    matrix_scan_user();
 | 
			
		||||
    if (readPin(ENCODER_SWITCH)) {
 | 
			
		||||
    if (gpio_read_pin(ENCODER_SWITCH)) {
 | 
			
		||||
        if (encoder_pressed) { // release switch
 | 
			
		||||
            encoder_pressed = 0;
 | 
			
		||||
            encoder_press_combo += 1;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue