Remove DEBOUNCE macro usage (#19750)
				
					
				
			This commit is contained in:
		
							parent
							
								
									a5f36b156b
								
							
						
					
					
						commit
						d5e622b979
					
				
					 14 changed files with 57 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -22,6 +22,10 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
#include "print.h"
 | 
			
		||||
#include "debug.h"
 | 
			
		||||
 | 
			
		||||
#ifndef DEBOUNCE
 | 
			
		||||
#    define DEBOUNCE 5
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
static uint8_t debouncing = DEBOUNCE;
 | 
			
		||||
 | 
			
		||||
/* matrix state(1:on, 0:off) */
 | 
			
		||||
| 
						 | 
				
			
			@ -277,4 +281,4 @@ static void select_col(uint8_t col) {
 | 
			
		|||
            PORTB |= 0b00100000;
 | 
			
		||||
            break;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue