|
发表于 2006-7-12 16:16:00
|
显示全部楼层
void ResetLS66789(void)
{
uint8 i;
uint16 R61500_REG[29][2] = {
//POWER SETING1
0x0000,0x0001, //Start oscillation
0x0001,0x091B, //Driver output control //01 1B
0x0002,0x0700, //LCD driving wave form control //05 00
0x0003,0x1030, //Entry mode //modified by houlijun,original 0xD0,0x30
0x0004,0x7030, //Compare register 1
0x0005,0x0000, //Compare register 2
0x0008,0x0202, //Display control 2
0x0009,0x000F, //Display control 3
0x0040,0x0000, //Gate scan position
0x0041,0x0000, //Vertical scroll control
0x0042,0xDB00, //1st-screen drive position
0x0043,0x0000, //2st-screen drive position
0x0044,0xAF00, //Horizontal RAM address position
0x0045,0xDB00, //Vertical RAM address position
//POWER_OFF
0x0007,0x0000, //Display control 1
0x0012,0x0000, //Power control 3
0x0013,0x0000, //Power control 4
0x0011,0x0000, //Power control 2 //00 03
0x0012,0x0000, //Power control 3
0x0013,0x151D, //Power control 4 //00 00
0x0010,0x0000, //Power control 1
0x0010,0x6040, //Power control 1 //00 44
0x0012,0x0018, //Power control 3 //00 1E
0x0013,0x2810, //Power control 4//351E 151E 2d18
0x000B,0x4000, //FRAME CONTROL 40 00
0x0010,0x0040, //Power control 1
0x0010,0x6260, //Power control 1//60 60
0x0007,0x0025, //Display control 1//25 0000 0000 0010 0101
0x0007,0x0037, //Display control 1//37 0000 0000 0011 0111
};
for(i=0;i<29;i++){
HD66789_sendcommand1(R61500_REG[0],R61500_REG[1]);
Delayms(5);
}
} |
|