djc
Advanced Member level 1
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
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