LCD Guest
|
LCD question |
Posted: Thu Dec 21, 2006 6:33 am |
|
|
Hi,
I'm working with a new LCD COG. I have a simple test program which writes the same data to each memory location (100*64 pixels --> 100*8 locations). If I use constant value , e.g., 32 everything goes right and I 8 lines. However, the values without "32", e.g. 1, makes display crazy. This is not a software problem, but have anyone had same kind of situation. Please find a code below.
Thanks and season greetings
Tapio
Write_Display2(CMD,DISPLAY_ON);
for (i=0; i<8;++i )
{
Write_Display2(CMD,0xB0+i);
Write_Display2(CMD,0x00); //Column adress low
Write_Display2(CMD,0x10);
for (j=0; j<100;++j)
{
Write_Display2(data_d, 0); HERE 32 works , 0 makes it crazy!
delay_ms(10);
}
} |
|