heres a pdf about the lcd and how to make it work, i dont understand much of it.
https://www.electro-tech-online.com/custompdfs/2010/08/Nokia20610020LCD20Display20Driver.pdf
and here is the init code that i have currently working.
GFX_Fore_Color = MX_GFXLCD_FCOL;
GFX_Back_Color = MX_GFXLCD_BCOL;
clear_bit(MX_GFXLCD_TRIS, MX_GFXLCD_RS); //Configure I/O
clear_bit(MX_GFXLCD_TRIS, MX_GFXLCD_CS);
clear_bit(MX_GFXLCD_TRIS, MX_GFXLCD_SDATA);
clear_bit(MX_GFXLCD_TRIS, MX_GFXLCD_SCLK);
clear_bit(MX_GFXLCD_PORT, MX_GFXLCD_RS); //Reset LCD
delay_ms(10); //Always wait after a Reset
set_bit(MX_GFXLCD_PORT, MX_GFXLCD_RS); //Startup LCD
set_bit(MX_GFXLCD_PORT, MX_GFXLCD_CS); //Select LCD
set_bit(MX_GFXLCD_PORT, MX_GFXLCD_SDATA); //Set Data Pin High
set_bit(MX_GFXLCD_PORT, MX_GFXLCD_SCLK); //Set Clock Pin High
gLCD_SendByte(MX_GFXLCD_CMD, 0x01);
delay_ms(10); //Wait after Reset
gLCD_SendByte(MX_GFXLCD_CMD, 0x11); //Sleep Out
delay_ms(40);
gLCD_SendByte(MX_GFXLCD_CMD, 0x29); //Display On
delay_ms(40);
gLCD_SendByte(MX_GFXLCD_CMD, 0x3A); //Interface Pixel Format....
gLCD_SendByte(MX_GFXLCD_PARAM, 0x02); //....data format: 8 bit for each Pixel
gLCD_SendByte(MX_GFXLCD_CMD, 0x20); //No inveMX_GFXLCD_RSion, 0x21 would be inverted display (different coloMX_GFXLCD_RS!)
gLCD_SendByte(MX_GFXLCD_CMD, 0x2D); //RGB-Table for the 256 out of 4096 color mode
for (i=0;i<20;i++)
{
gLCD_SendByte(MX_GFXLCD_PARAM, DataInit
); //read predefined color table for 256 color mode
}
Clear();
i have tried to include the code for contrast but i cant get it to work, thats even if the contrast is the problem