I like to know how count the received values from. Im using an 4×4 keypad, and AVR studio as compiler
for example if I press button “1” I receive a “1” but if I press button “1” again it should be an “11” and not a “2”,
int inputcounter;
if (button = 00×1)
{ // what should i do instead of
inputcounter++ to get “11” and not “2”
}
Thank you.
Based on the comment
instead of inputcounter++, it sounds like you are trying to use a numeric value.So you need to do: