Im having problems with a sparkfun 4x20 line LCD.
I used the code from the playground, and it worked fine on my 2x16 sparkfun display, but i can't seem to get it to use all 4 lines on the 4 line display?
I thought i told it to change line with this command:
It looks like the DDRAM addressing is not the same as the 2x16s. Look in the data sheet http://www.sparkfun.com/datasheets/LCD/GDM2004D.pdf on the bottom of page 8. The lines seem to start at 0x00, 0x40, 0x14, and 0x54.
Which is just the same as the 16x2 display, so i thought it would just accept the same commands, but ill try it with whats in that other pdf you linked to.
Thank you.
Ohh i figured out what was wrong... Sparkfun has configured the SerLCD wrongly, the manual says it should be coded to the right LCD when you buy it "pre fixed". But apparently it's set to 2x16 instead 4x20, now i just need to figure out how to reprogram the Serial LCD module.
edit:
Hmm the data sheet says i need to: "transmit the special command - 124 (0x7C) Follow this command with either 3, 4, 5 or 6.
So i would think i had to send the command
Serial.print(0x7C, BYTE); Serial.print(3, BYTE); (3 for a 20 Chacter wide display)
and
*Serial.print(5, BYTE); * (4 for a 4 line display)
But it doesn't work, i guess i shouldn't send the "Serial.print" command but something else insted?