微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > S3C2410之LCD

S3C2410之LCD

时间:11-11 来源:互联网 点击:

PutPixel(i,j,c);

//else if((type==MODE_TFT_1BIT_640480)|(type==MODE_TFT_8BIT_640480)|(type==MODE_TFT_16BIT_640480))
else if((type&0x4000)&&(type&0x200))
for(j=0;j
for(i=0;i
PutPixel(i,j,c); //在前面函数指针已赋值PutPixel=_PutTft8Bit_640480
............
}

rTPAL = (1<24)|((0xff)<0); // Enable Temporary Palette : Blue
Uart_Printf("TFT 256 color mode test 1. Press any key! ");
Uart_Getch();

k=0;
for(i=0;i<640;i+=40)
for(j=0;j<480;j+=30)
{
Glib_FilledRectangle(i,j,i+39,j+29,(k%256));
k++;
}
rTPAL = 0;
Uart_Printf("TFT 256 color mode test 2. Press any key! ");
Uart_Getch();

......

}

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top