|
我用的BMP2C还是有点花屏,图片可以显示出来,但比较模糊,颜色也不对。如果用IMAGE2LCD,根本就显示不出图像,不知为什么。我用的是640*480的屏
哪位高手分析下列代码的作用,没看懂
FBuf = (struct FrameBuffer *) (FRAMEBUF_BASE);
RETAILMSG(1,(TEXT("------tft640_480---------InitDisplay-----------------\r\n")));
//memcpy((void *)FRAMEBUF_BASE, ScreenBitmap, ARRAY_SIZE_TFT_16BIT);
// Test LCD display status with R.G.B and White color.
for (i=0; i
{
for (j=0; j
{
if (j
#if (LCDTYPE == TFT16BPP)
FBuf->pixel[j]=0xffff;
#else
FBuf->pixel[j]=0xff;
#endif
else
#if (LCDTYPE == TFT16BPP)
FBuf->pixel[j]=0xf800;
#else
FBuf->pixel[j]=0xe0;
#endif
}
}
for (i=LCD_YSIZE_TFT/2; i
{
for (j=0; j
{
if (j
#if (LCDTYPE == TFT16BPP)
FBuf->pixel[j]=0x07e0;
#else
FBuf->pixel[j]=0x1c;
#endif
else
#if (LCDTYPE == TFT16BPP)
FBuf->pixel[j]=0x001f;
#else
FBuf->pixel[j]=0x03;
#endif
}
}
|
|