Basically, I'm trying to use just an Arduino with a self-correcting program along with an LCD screen and a 4x4 keypad to try to auto-correct the temperature which will be found using a Thermistor, but I can't find a way to get the keypad to start a function. I'm trying to make it to where if you press 'A', it will then wait for another input (a number), then will put it onto a certain spot on the LCD. Is there a function to wait for user input from the keypad?
If not, how can I make it store 2 different variables before I press a "set" key 'A'? Such as, if I press 7 then 5 (to where I get 75 as my reading) then I can press A to set that variable onto the LCD.
Will you be doing something in the background while waiting for the user to press button A or are you solely waiting for the user input without having to do anything else, say read temperature and "correct" temperature as you wait for key press?
I'm working in a clock/countdown timer project that also uses a 4x4 keypad, and needs to start some function when a key is pressed (meanwhile it will keep on updating the clock sign).
I was thinking about using an interrupt to sense that a key is pressed, and afterwards read what key is pressed. Can this work?
I know i should have the whole key matrix connected to read the first key pressed, and afterwards start reading it selectively.