This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Printing name in Lcd

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

Parents
  • The hardest thing for people to learn is that a couple of extra hours spent collecting information or planning at the start of the project will save many times over at the end of the project. People are in a hurry, so they jump-start the projects without first figuring out what the actual goal is. So when the do get a hit on Google, they decide it's "close enough" and most probably doesn't even read the full page.

    The good thing is that lots of people will fail - and you can learn a lot from a failure. But it's so much smarter and productive to learn from someone elses failure instead of making own failures.

Reply
  • The hardest thing for people to learn is that a couple of extra hours spent collecting information or planning at the start of the project will save many times over at the end of the project. People are in a hurry, so they jump-start the projects without first figuring out what the actual goal is. So when the do get a hit on Google, they decide it's "close enough" and most probably doesn't even read the full page.

    The good thing is that lots of people will fail - and you can learn a lot from a failure. But it's so much smarter and productive to learn from someone elses failure instead of making own failures.

Children
  • hi all.

    Thanks for your help before. I still work on the project and it is nearly working properly. The problem is that it sometimes prints on the second line with a gap. can anybody please me....

    this is my new code

    unsigned char time[3]={"00"};
    void main(void)
    {
       unsigned int i,k, j;
    
       lcdcmd(0x38);
       lcdcmd(0x0F);
       lcdcmd(0x06);
       lcdcmd(0x01);
    
       printstring("ENTER TIME:");
          lcdcmd();
         lcdcursor(7);
            i=0;
       do
     {
           time[i]=keypad();
          lcddata(time[i]);
                                                                  i++;
       }
         while(i!=2);
            i=0;
                     lcdclear();
         lcdcursor(5);
                printstring("TIME SET", time);
           msdelay(200);
     }