| 
					
				 | 
			
			
				@@ -1,6 +1,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 # Keypad Scanning 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-There's a dozen ways to connect a keyboard to a microcontroller, and this paper attempts to enumerate many of them. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+There's a dozen ways to connect a keyboard to a microcontroller, and this paper attempts to enumerate many of them. [test link](#one-per-pin) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 There are similar articles on the internet [[see below](#ext_ref)],  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 but this paper introduces some new techniques: [row-grounded](#3x4-plus-ground-[new-design]),  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 [row-grounded-with-diodes](#3x4diodes),  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -22,8 +22,8 @@ Sometimes, this is appropriate if the keypad is small or in an awkward location, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 In this document, *n* refers to the number of keys that are in the keyboard. The letter *k* refers to a specific key 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 that is being pressed during an explanation. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-<a name="one_per_pin" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-## One per Pin  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+## <a name="one_per_pin" /> One per Pin  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 The simplest way to connect keys to a microcontroller is one key to one pin.  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 Connect the other side of the key to ground.  
			 |