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.

interfacing keypad and lcd with ARM7 lpc2148

Status
Not open for further replies.

djc

Advanced Member level 1
Advanced Member level 1
Joined
Jan 27, 2013
Messages
402
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Location
India
Activity points
4,554
I have doubt regarding my program for ARM7 lpc2148 interfacing with keypad and LCD. What i am trying to do is , I want to display particular key no on LCD. For that I have taken an array of key nos. and followed usual logic for scanning the key. Now when I pass the key no. using function it's giving an error in called function saying"EXPECTED AN EXPRESSION".

Here is the function,



suppose pressed key is in 0th row and first column then a function is called, which is


"printlcd(keypad [row] [col0]); "


In the called function arguments are collected as


printlcd (int keypad[int m][int n]) ---------> Error:- Expected an expression
//int m,n;
{
int m,n;

lcd_data(*(*(keypad+m)+n));
Delay(20000);

}



Its iving me an error Expected an expression. Can anybody please gude me how this could be done.


Regards

Dheeraj
 

Hi,

I think in definition of your function can you remove type of m and n variables and try.

printlcd (int keypad[m][n])
 
Hey thanx Ravi, i have solved it now, thanx for ur valuable suggestion.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top