Jul 30, 2014 #1 K kalyaniupen Junior Member level 2 Joined Jul 25, 2014 Messages 21 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,468 sir, i want to know the code in embedded c for backspace,up arrow,down arrow in 4x4 keypad pls help me
sir, i want to know the code in embedded c for backspace,up arrow,down arrow in 4x4 keypad pls help me
Jul 30, 2014 #2 M milan.rajik Banned Joined Apr 1, 2013 Messages 2,524 Helped 540 Reputation 1,078 Reaction score 524 Trophy points 1,393 Activity points 0 On Key press you append the key value to an array and terminate it with null character and use this string to display data on LCD. You also use a counter to index array elements. On Key press (except back space) Code C - [expand]1 2 3 keyData[i++] = Key; keyData[i] = '\0'; displayOnLCD(keyData); //If backspace is pressed Code C - [expand]1 2 3 i--; keyData[i] = '\0'; diaplayOnLCD(keyData);
On Key press you append the key value to an array and terminate it with null character and use this string to display data on LCD. You also use a counter to index array elements. On Key press (except back space) Code C - [expand]1 2 3 keyData[i++] = Key; keyData[i] = '\0'; displayOnLCD(keyData); //If backspace is pressed Code C - [expand]1 2 3 i--; keyData[i] = '\0'; diaplayOnLCD(keyData);
Jul 30, 2014 #3 S Surender Reddy Full Member level 2 Joined Jan 28, 2012 Messages 129 Helped 7 Reputation 14 Reaction score 7 Trophy points 1,298 Location Bangalore, India Activity points 2,186 According to the keypad buttons change the LCD Commands...................