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

Displaying character.

I am a beginner to C language... I have alreaady initialized the LCD in my code...How do i display a message("HELLO" eg.) to LCD? I want to use it in function void but i do not know where to start...I want to make it simple if possible...There are samples that i found but the samples are complicated...

Parents
  • I try to write it in this way...I am trying to display the letter 'c' to my 8x2 LCD but a line of square dots keep on displaying on the LCD,without displaying a letter.

    void lcdwrite(char *letter)
    {
      while(*letter)
      {
            lcddata(*letter);
            letter++;
      }
    }
    
    void main()
    {
      Init_Device();
      lcdinit();
      lcd_clear();
      lcdwrite('c');
    
    }
    

Reply
  • I try to write it in this way...I am trying to display the letter 'c' to my 8x2 LCD but a line of square dots keep on displaying on the LCD,without displaying a letter.

    void lcdwrite(char *letter)
    {
      while(*letter)
      {
            lcddata(*letter);
            letter++;
      }
    }
    
    void main()
    {
      Init_Device();
      lcdinit();
      lcd_clear();
      lcdwrite('c');
    
    }
    

Children