Switch our debouncing to only run 3 times per 5 ms, which is closer to

what we 'really' want per switch manufacturers

Signed-off-by: Jesse Vincent <jesse@keyboard.io>
pull/473/head
Jesse Vincent 6 years ago
parent 854fba3ff7
commit 3e9552cf44

@ -40,11 +40,11 @@ void ATMegaKeyboard::setup(void) {
OUTPUT_HIGH(KeyboardHardware.matrix_row_pins[i]); OUTPUT_HIGH(KeyboardHardware.matrix_row_pins[i]);
} }
/* Set up Timer1 for 500usec */ /* Set up Timer1 for 1700usec */
TCCR1B = _BV(WGM13); TCCR1B = _BV(WGM13);
TCCR1A = 0; TCCR1A = 0;
const uint32_t cycles = (F_CPU / 2000000) * 500; const uint32_t cycles = (F_CPU / 2000000) * 1700;
ICR1 = cycles; ICR1 = cycles;
TCCR1B = _BV(WGM13) | _BV(CS10); TCCR1B = _BV(WGM13) | _BV(CS10);

Loading…
Cancel
Save