SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By rgsparber
I bought an LCD-00791 16X2 display and it worked fine in 2015. I just wrote some new code that uses this display and find that I can't move to the second row. Anything that is printed appears on the first row. "lcd.setCursor(0,1);" has no effect.

I do have lcd.begin(16,2); in my setup(). I'm driving the display with a Pro Micro. Printed characters are correct.

I understand that this is a discontinued product but hope that the drivers are still available.

Help would be greatly appreciated!


PS: I'm also having no joy with an MCP23017 port expander that runs via I2C but don't think it is related.
By rgsparber
I doubt this is the right way to do it, but I modified LiquidCrystal.h at line 75 from begin(16,1); which says 16 columns and 1 row to begin(16,2); which says 16 columns 2 rows. Display now works as expected. It is not at all clear why I had to do this.

User avatar
By Ross Robotics
That is odd. Not sure why either..
By lyndon
Did you update your Arduino libraries in that time? I'm trying to debug a similar problem remotely. My code works just fine at my site, but at the overseas site, the same display does weird things. The actual display over there was working before I updated libraries.

If you figure out the answer, I'd really like to know. It's a puzzle.
By rgsparber
I did not update my library AFAIK.

Are you sure the overseas site has the same hardware configuration? A broken wire or misplaced wire can cause strange results. It is not unheard of that around the time of a software update, a wire breaks. I suggest you go back to basics and assume that it never worked. Check every connection and then check the version of each software component. If that is the same as at home, try downloading the code again.

By lyndon
Thanks, but we've already troubleshot the hardware. It's definitely a software problem. Most likely culprit is that there's an existing software bug, but it only shows up on the remote site since it has a slightly different display board.
By Anthony Fremont
I have an older Hitachi based LCD that needs a longer reset period than the datasheet would indicate. It wouldn't work with the library default. Perhaps you have a similar issue.

Sent from my Moto G (4) using Tapatalk
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]