Displaytech 64128K with ST7565 driver

Hi, I am trying to use this 64128K LCD display from Displaytech on Arduino Uno.

I am trying to use the driver from Adafruit for LCD ST7565, where they both suppose to have the same driver ic.

http://www.ladyada.net/learn/lcd/st7565.html

However I got the upper and lower portions of the display reverse. What can be wrong?

In ST7565.cpp have a look for

const uint8_t pagemap[] = { 3,2,1,0,7,6,5,4 } ;

adjust the order so it matches your LCD. In your case swap the first 4 and second 4 pages.

Thanks. It works perfectly now!