I'm using this keypad: http://www.adafruit.com/product/419
with the Toolbox.NETMF.Hardware.MatrixKeyPad driver and I'm getting a lot of bounce. It appears that the "time" parameter of the event handler is not working correctly. For example, in the code below, ButtonLastPushed is initially 0 and the first time the button is pushed "time" is zero also. Has anyone else run into this problem and found a fix?
/// Triggered when a key is pressedstatic void kb_OnKeyDown(uint KeyCode, uint Unused, DateTime time) { if (ButtonLastPushed.AddMilliseconds(intBounceWait) > time) return; // prevent bounce ButtonLastPushed = time; Debug.Print("Key pressed: " + KeyLookup((int)KeyCode).ToString()); }