Hello everyone, I have a small question, and I want to know how I can write on the second line of the lcd in C, and without using the libraries for the lcd
without using the libraries for the lcd
If you really want to do it from scratch, then this is the procedure: http://www.8052.com/forum/read/1...
These LCDs have been around for 30 years now - are you really saying that you can find no description or example of doing this ?!
An LCD has an address for each character position on the screen and an address pointer that is incremented each time you write a character, so it points to the next character position. Normally there are two functions for LCD's, one to write the character to the screen and one to send commands (like cursor position), clear screen, etc.
The command function will write to the address pointer to set it to the address of the first character position on the 2nd line of the display.
Why not use the library? If you just want to do it yourself, begin by studying how the library does it and compare that to LCD datasheet!
Then knock your self out and write your own functions
© 2018 Microchip Technology Inc.