Closed matsstaff closed 10 years ago
Should be an easy enough fix, though proper settings for the timer need to be set, so acceleration will still work properly.
// Postscaler 1:6, Enable counter, prescaler 1:64 T6CON = 0b00101111; // @4MHz, Timer 2 clock is FOSC/4 -> 1MHz prescale 1:64-> 15.625kHz, 250 and postscale 1:6 -> 10.42Hz or 96ms PR6 = 250;
Too short debounce time, sometimes single press registers as double press.