Interfacing a new LCD type (LC7981) to glcd and MEGA

I am an Arduino newbie, and reviewing the GLCD documentation, in order to understand how to change the library to support this particular LC7981-based LCD display in lieu of the default types supported. It is a common surplus device...I have located (2) AVR programming examples elsewhere, though I failed miserably at pulling them into a sketch, compiling was a quagmire.

So I think GLCD makes sense for me from the standpoint that it is better supported, has diagnostics, and compiles before I touch it wiht my own edits.

First question: I see where to adjust the pin assignments for the MEGA, and the LCD's specific timing numbers, but don't see anything with respect to the low level lcd addressing...that is, when you do an initialization or read or write, there is a specific sequence of lines and delays to implement, aren't I to assume these vary among manufacturers? Should I not at least check that they are correct?

Thanks for any insight.

If another lib is an option for you, than maybe you could have a look at u8glib. All display specific code is located in one single file. In the case of the LC7981, you might start with the ST7920 device, which as a similar memory architecture (as far as I have understand the datasheet):
http://code.google.com/p/u8glib/source/browse/csrc/u8g_dev_st7920_192x32.c
So you have to rename this file to something like u8g_dev_lc7981_WWWxHHH.c, change the WIDTH and HEIGHT parameters and modify the init and page setup sequences.

Oliver

Oli,
Vielen Dank.
I will take a look at this. I must admit this Arduino glcd app, with its many header files is giving me severe kopf schmertz.
:wink: