Hello guys,
I have my msp set up to accept user input to set setpoints. When they press the "up" button the pressure setpoint increases by 10 and when they press "down" button it decreases by 1.
My question is how do you set the sensing of the input to only take 1 "command" from the button. Right now to simulate the button press I am just applying a voltage to the appropriate input on the chip but even if i barely tap the input the chip scans the input multiple times and adds multiples of 10 to my variable.
Will this be fixed by using an actual keypad with debounce or is some code required? For example should I use the port interrupt that way on a rising edge i enter ISR and increment/decrement variable?
Does this make sense? If not I can attempt to rewrite my question.
Thanks,