Hi, I have lcd 128x64 12864zb someone like this: Graphic LCD 128x64 STN LED Backlight - LCD-00710 - SparkFun Electronics
and don't know how to connect lcd to my arduino mega 2560
lcd have 20 legs: GND, VCC, V0, RS, RW, E, DB0, DB1, DB2, DB3, DB4, DB5, DB6, DB7, PSB, NC, RST, VOUT, A, K.
can anyone tell me how to connect this lcd to my arduino?
A and K are the backlight LED. There may or may not be a series resistor already. Usually, you can see where the LED is soldered to the board at one edge, then you can use a multimeter to see whether there is any resistance between those connections and the A and K connections.
For wiring the other LCD connections to the Arduino, if you are using my driver then they are listed in the .ino file. It is a serial mode driver, so the D0-D7 pins are not connected.
DC42,
I was looking at you u8glib and I am impressed. However, you use a 4050 to translate 5v to 3.3v. I was wondering why. The place where I bought my display said VDD was 5v, however the also said the viewing angle was 6 o'clock. Something may be lost in the Chinese translation.
u8glib isn't mine so I can't answer your question. I looked at the dfrobot serial library but didn't find it helpful (AFAIR it just displays a bitmap), so I wrote my own.
Here is an adaptation of the hackvision Pong for 128x64 displays based on the ST7920 chip which uses your controller (thank you). It uses two buttons for up and down and a beeper on pin 8.