回复【4楼】正点原子:
---------------------------------
搞半天还是不行 出来的 全是蓝色的乱码
[mw_shl_code=c,true] res=f_open(f_bmp,(const TCHAR*)filename,FA_READ);//?ò??????
if(res==0)//?ò??????.
{
f_read(f_bmp,databuf,readlen,(UINT*)&br); //????readlen??×???
pbmp=(BITMAPINFO*)databuf; //????BMP???·??????
count=pbmp->bmfHeader.bfOffBits; //????????,???????????????????·
picinfo.ImgHeight=pbmp->bmiHeader.biHeight; //????????????
picinfo.ImgWidth=pbmp->bmiHeader.biWidth; //?????????í??
width=picinfo.ImgWidth-0+1; //???????????í??
height=picinfo.ImgHeight-0+1; //????140
for(i=0;i<height;i++)
{
LCD_SetCursor(0,0+i); //?è????±ê???? LCD_SetCursor(x,y)
LCD_WriteRAM_Prepare(); //????????GRAMLCD_WR_DATA
for(j=0;j<width;j++)
{
color=bmpbuf[count+i*height+j];
LCD_WR_DATA(color);
}//????????
}
}
}[/mw_shl_code]
|