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
  • "Look at your revision notes on page 3"

    That's the trouble with having all your documentation separate from the source code!

    Learn the habit now of always fully-commenting your code
    (with specific references to external documents where necessary)

    For example:
    All functions should have a descriptive header;
    All variable definitions should clearly state their purpose, usage, range of values, units of measure, etc

    eg

    // Write a null-terminated string to the LCD
    void lcdwrite
    (
       char *letter   // Input: pointer to the string to write
    )
    {
      while(*letter)
      {
            lcddata(*letter);
            letter++;
      }
    }
    


    Think also that "letter" was not a good choice of name for the parameter, was it?

Reply
  • "Look at your revision notes on page 3"

    That's the trouble with having all your documentation separate from the source code!

    Learn the habit now of always fully-commenting your code
    (with specific references to external documents where necessary)

    For example:
    All functions should have a descriptive header;
    All variable definitions should clearly state their purpose, usage, range of values, units of measure, etc

    eg

    // Write a null-terminated string to the LCD
    void lcdwrite
    (
       char *letter   // Input: pointer to the string to write
    )
    {
      while(*letter)
      {
            lcddata(*letter);
            letter++;
      }
    }
    


    Think also that "letter" was not a good choice of name for the parameter, was it?

Children