CFAX LCD and LPC2138(almost there)

OK.

I managed to display finally the image.

But the image is a bit strange. Every 2 columns the image is streched.

i have a picture as an attachment so you can see what i mean.

and here is my code:

int main (void) {

Initialize();

LCD_init();

int

row;

for(row=0;row<=7;row++)

{

//Page Address

LCD_command(0xB0|row);

//High Column

LCD_command(0x10);

//Low Column For some reason the Left-most column of the

//CFAX12864 is at 4. Hmmm.

LCD_command(0x04);

// RS(1);

int

col;

for(col=0;col<=127;col++)

{

LCD_out(cfax12864a[row][col]);

RD(1);

RS(1);

RW(0);

RW(1);

RD(0);

}

}

}

//////////////////////

what am i doing wring here?

http://www.geocities.com/fgcity/test-LCD.jpg