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 - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -