interfacing keypad and lcd with ARM7 lpc2148

Status
Not open for further replies.

djc

Advanced Member level 1
Joined
Jan 27, 2013
Messages
402
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Location
India
Visit site
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
 

Hey thanx Ravi, i have solved it now, thanx for ur valuable suggestion.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…