[Keyboard] Add Iris Rev 4 (#6660)
* Add Iris Rev. 4 * Fix EEPROM addresses
This commit is contained in:
		
							parent
							
								
									98599173d7
								
							
						
					
					
						commit
						f0ad3fc68a
					
				
					 7 changed files with 156 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -112,3 +112,20 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 | 
			
		|||
  }
 | 
			
		||||
  return true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void encoder_update_user(uint8_t index, bool clockwise) {
 | 
			
		||||
    if (index == 0) {
 | 
			
		||||
        if (clockwise) {
 | 
			
		||||
            tap_code(KC_VOLU);
 | 
			
		||||
        } else {
 | 
			
		||||
            tap_code(KC_VOLD);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    else if (index == 1) {
 | 
			
		||||
        if (clockwise) {
 | 
			
		||||
            tap_code(KC_PGDN);
 | 
			
		||||
        } else {
 | 
			
		||||
            tap_code(KC_PGUP);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue