use encoders for thk
This commit is contained in:
		
							parent
							
								
									44e7bdf52b
								
							
						
					
					
						commit
						3a64a9c55e
					
				
					 4 changed files with 14 additions and 53 deletions
				
			
		| 
						 | 
				
			
			@ -161,7 +161,7 @@ extern uint32_t default_layer_state;
 | 
			
		|||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    #define readPin(pin) (PIN_ADDRESS(pin, 0) & _BV(pin & 0xF))
 | 
			
		||||
    #define readPin(pin) ((PIN_ADDRESS(pin, 0) & _BV(pin & 0xF)) != 0)
 | 
			
		||||
#elif defined(PROTOCOL_CHIBIOS)
 | 
			
		||||
    #define pin_t ioline_t
 | 
			
		||||
    #define setPinInput(pin) palSetLineMode(pin, PAL_MODE_INPUT)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue