Scanning string of characters from 4x3 keypad mikroc Pic16f877a

Status
Not open for further replies.

Mathi_theboss

Newbie level 5
Joined
Mar 28, 2013
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,351
Hi friends i want to know how to get a string of characters from keypad 4x3, like getting 4 numbers continuously pressed one by one, and storing in a variable.
 

The example is for 4X4 keypad and not single key. If your keypad returns characters like '1', '2',... for keys 1,2,... you have to store the keys in a string array like keys[5]. If key[0] = '1', key[1] = '2', key[2] = '3', key[3] = '4' and you terminate the array with key[4] = '\0'. So, your key[5] will be equal to "1234".
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…