Debounceing button on Arduino LCD keypad
![userHead](https://dfimg.dfrobot.com/dfPortrait2.png)
Hi there,
I'm sure this question has been asked before; but how do you debounce the keypad buttons on a DFRobot LCD keypad shield (Arduino)?
I've been through the DFRobot tutorial and got the buttons to print messages to the LCD ( it uses 'case', defines each button with a number). That part seems to work, but when I try to do anything other than print a message on the LCD, I get multiple triggers on the button.
I haven't been able to get the Bounce2.h library to work because it is configured to only work with digital buttons. All the buttons (except reset) go through A0 and give a different voltage when the buttons are pressed.
Any help/advice on how to resolve this would be greatly appreciated.
I'm sure this question has been asked before; but how do you debounce the keypad buttons on a DFRobot LCD keypad shield (Arduino)?
I've been through the DFRobot tutorial and got the buttons to print messages to the LCD ( it uses 'case', defines each button with a number). That part seems to work, but when I try to do anything other than print a message on the LCD, I get multiple triggers on the button.
I haven't been able to get the Bounce2.h library to work because it is configured to only work with digital buttons. All the buttons (except reset) go through A0 and give a different voltage when the buttons are pressed.
Any help/advice on how to resolve this would be greatly appreciated.