c - Keypad scan for microcontroller -


I have developed a C driver for the microprocessor for the keypad. I want to change it so that when I press 1, for example, it displays 1 until I press another number till now, the number changes only when I press the number which means that This time I will go away after releasing the button on the keypad. Please give me a general idea of ​​how I will go about implementing my desired change.

Store the last pressed key in a variable that you "display" (or whatever You want) until the next key is pressed, when you change the variable to the new key value

Comments

Popular posts from this blog

c++ - why does this code produce a runtime error? -

java - Can Find the error -

maximum size of array in c -