changes to be made:
cmd(0x20);
cmd(0x28)
cmd(0x01);
cmd(0x06);
cmd(0x0f);
cmd(0x80);
IOSET0 = 0x00000400;
delay(1);
IOCLR0 = 0x00780000;
delay(1);
IOSET0 = 0x00000400;
delay(1);
IOCLR0 = 0x00780000;
delay(1);
IOSET0 = 0x00002400;
delay(1);
IOCLR0 = 0x00780000;
delay(1);
IOSET0 = 0x00002400;
delay(1);
IOCLR0 = 0x00780000;
delay(1);
I mean to say that when you make enable high to low you need to keep it for few milliseconds in that state,, so add delay as i have added...
and what is the purpose of
IOSET0 = b;
delay(10000);
IOCLR0 = 0x00000400;
there is a delay(10000),, what is it used for