Skipping a line
I am using an NHD-0420D3Z-FL-GBW-V3 and am able to print characters on the LCD. I set the cursor to home, then I print more characters than can fit on one line. The next character, the 21st character, shows up on line 3, not line 2 as I expect. What am I doing wrong?
Also, how do I jump to the next line? \n prints as a funny character, not a carriage return.
Thanks!
-
Writing a string of characters to this display will first fill line 1, then move to line 3, followed by line 2 and lastly fill line 4.
To set the cursor at line 2 after you fill line 1 with characters, use the Set Cursor Command "0xFE 0x45" with "0x40" to position the cursor at the beginning of line 2.
See the Command description on page 9 in the datasheet for further details:https://newhavendisplay.com/content/specs/NHD-0420D3Z-FL-GBW-V3.pdf
0 -
Thank you for the explanation. I looked for that kind of information in the manual but didn't find it. I found the behaviour counter intuitive but now I know that it is the default.
0
Please sign in to leave a comment.
Comments
2 comments