Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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
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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top