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 Reply Children
  • "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?

  • Ya that "letter" was not a good choice of name for parameter... But i still don't get any message displayed on my LCD...Not even a cursor..All i get are row of square dots...

  • Mr Alias,

    go back and look at teech's notes. The code DOES work. I know, im using it here!

  • " i still don't get any message displayed on my LCD"

    If you haven't corrected the call to the function, then it still won't work, will it?

    Post your corrected code!