SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By rgsparber
#195465
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!

Thanks,

Rick
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
#195472
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.

Rick
User avatar
By Ross Robotics
#195477
That is odd. Not sure why either..
By lyndon
#195483
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
#195498
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.

Rick
By lyndon
#195525
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
#195616
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