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
  • 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);
       }
     }
    

Reply
  • 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);
       }
     }
    

Children