i have this lcd screen https://www.adafruit.com/products/498
i need help i cant print anything on the second line it just continues whatever is on the first onto the third line
how do you make 20x4 lcd print on second line?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Hellrazer21
- Posts: 10
- Joined: Wed Jun 24, 2015 2:06 pm
- adafruit_support_bill
- Posts: 88096
- Joined: Sat Feb 07, 2009 10:11 am
Re: how do you make 20x4 lcd print on second line?
Use the setcursor function
https://www.arduino.cc/en/Reference/Liq ... lSetCursor
https://www.arduino.cc/en/Reference/Liq ... lSetCursor
- Hellrazer21
- Posts: 10
- Joined: Wed Jun 24, 2015 2:06 pm
Re: how do you make 20x4 lcd print on second line?
thanks that did the trick its not exactly the way i thought the lcd would work but theres text on the screen thats all that matters lol
- adafruit_support_bill
- Posts: 88096
- Joined: Sat Feb 07, 2009 10:11 am
Re: how do you make 20x4 lcd print on second line?
The memory mapping on those displays is a little weird. The first line wraps around to the third line and the second line wraps around to the fourth. It is almost like two separate displays with interlaced lines.
Please be positive and constructive with your questions and comments.