I'm writing some drivers for my SBC to drive an LCD of 20x4. However, I think the memory format is 40x4.
I can write characters just fine but I'm having trouble finding information on the bizarre memory format of it. From what I understand, it's defined somewhat like:
Code:
AAAAAAAAAAAAAAAAAAAA
BBBBBBBBBBBBBBBBBBBB
AAAAAAAAAAAAAAAAAAAA
BBBBBBBBBBBBBBBBBBBB
When I plot characters (and allow the cursor to automatically move), it fills up the "A" lines but the "B" lines never print. Actually, it seems like there is another page to the right just like the first page. Meaning, when I print past "ROW 0, COL 19", instead of going to the second line, there seems to be another 20 characters hidden to the right. It's like I have 80 characters total but only 40 can be seen (just the "A" lines).
I've tried searching for docs but everything I find is suited for Arduino. I suppose I could study the Arduino LCD library but I'd like to find a good list of commands, memory layouts, etc.
The good news is that I can successfully send commands and data. I just don't know what commands to send!
I have found some generic LCD command lists but none (that I've found) indicate the various memory layouts.
Thanks for any suggestions!