Hello,
DavidOConnor:
I understand what you mean, but in the sentence: if(keypad.getKey()!= NO_KEY) , I have the "!=" that means different (not equal), so has to wait till the pressing shows a key pressed. I'm right?
PaulS:
I think I haven't explained well. I suppose that for the control block "for" it has to wait for the condition to go on:
for (what_I_have; till_mets_this;)
code to be executed till what I have mets this
so:
for (int i = 0; i < 4;){
if(keypad.getKey()!= NO_KEY){
int tmp = keypad.getKey();
int getKey(tmp);
myNum[i]= tmp;
i = i+1;
}
Has to wait till 4 keys are pressed to continue the code. And is what it makes, but without storing the values of: myNum*.*
The code is working perfectly except for that, doesn't stores the values, but waits for the four keys pressed.
Did I explained myself better this time? ![]()
Cheers!!