atlaikesbriedi:
char waitForKey()
This function will wait forever until someone presses a key. Warning: It blocks all other code until a key is pressed. That means no blinking LED's, no LCD screen updates, no nothing with the exception of interrupt routines.Yeah, it also block all other code. Somehow my lcd works though. Now I'm not sure if I need to use waitForKey(). Most similar examples I've seen used that. Still, the problem seems somewhere in communication between the loops...I guess.
Let's stick with this for a while.
Your working program in Reply #6 has 4 successive calls to waitForKey() so I assume that it would wait forever at any one of those and, when you say your program works that is because you do actually press the keypad 4 times. Is that correct?
...R