View Single Post
Old 10-02-2013, 06:06 PM   #120 (permalink)
t vago
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Hungary
Posts: 1,807

iNXS - '10 Opel Zafira 111 Anniversary

Suzi - '02 Suzuki Swift GL
Thanks: 829
Thanked 708 Times in 456 Posts
Got the button press debounce fix working. (current MPGuino code version is at first post of this thread)

Debounce timing adjustments may be made by adjusting the following two lines in the code.

Code:
const unsigned int keyDelay = (unsigned int)(t2CyclesPerSecond / 256ul);
const unsigned int keyShortDelay = keyDelay - (5 * keyDelay / 100); // wait 5/100 of a second before accepting button presses

Last edited by t vago; 05-11-2014 at 03:32 PM.. Reason: current MPGuino code version is at first post of this thread
  Reply With Quote
The Following 2 Users Say Thank You to t vago For This Useful Post:
AndrzejM (10-03-2013), Ardent (10-02-2013)