hi all.... This is Gaurav Kothari. I want a very small help from you. As i new to programming part, i started my new project of hello world. my lcd prints it perfectly But now i want my lcd to ask the name first and then to print hello and then the name entered. can anybody please me....
This is my code.... .. unsigned char time[3]={"00"}; void main() { unsigned int i,k;
lcdcmd(0x38); lcdcmd(0x0F); lcdcmd(0x06); lcdcmd(0x01); { printstring("ENTER TIME:"); lcdcmd(); i=0; do { time[i]=keypad(); lcddata(time[i]); i++; } while(i!=2); i=0; lcdclear(); printstring("TIME SET", time); msdelay(200); } }
Do you have no access to books, or online resources, about C programming?
So "too many parameters" suggests the function can print only ONE string at a time, no? You could look at the definition of the function too, if it's not clear from the documentation, or the error.
{ char string[64]; sprintf(string, "Hello %s",name); printstring(string); }
i have attached a keypad and lcd. lcd is being attached on port1 and keypad on port 0 and 2. i wrote a command printstring("Hello",name); but it shows me a error... too many parameters
So what input facilities do you have?
View all questions in Keil forum