adds default encoder res
This commit is contained in:
		
							parent
							
								
									03b1904b2e
								
							
						
					
					
						commit
						25642c8840
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -92,6 +92,10 @@ void encoder_update(bool direction) { }
 | 
			
		|||
 | 
			
		||||
bool last_dip_switch[4] = {0};
 | 
			
		||||
 | 
			
		||||
#ifndef ENCODER_RESOLUTION
 | 
			
		||||
  #define ENCODER_RESOLUTION 4
 | 
			
		||||
#undef ENCODER_RESOLUTION
 | 
			
		||||
 | 
			
		||||
uint8_t matrix_scan(void) {
 | 
			
		||||
    // dip switch
 | 
			
		||||
    dip_switch[0] = palReadPad(GPIOB, 14);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue