板子中显示图片实验,用串口调试
sprintf((char *)temp_name,"0:%s",file_name);
printf("\r\n%s",temp_name);
f_mount(0,&fspic[0]);
respic=f_open(&fsrcpic,(char *)temp_name,FA_OPEN_EXISTING|FA_READ);
printf("\r\n%d",respic);
if(respic ==FR_OK)
{
respic=f_read(&fsrcpic,&fileType,sizeof(WORD),&brpic);
printf("\r\n%d",respic);
respic=f_read(&fsrcpic,&bitfilehead,sizeof(bitfilehead),&brpic);
respic=f_read(&fsrcpic,&bitinfohead,sizeof(bitinfohead),&brpic);
}
结果为
0:pic1.bmp
0
怎么后面的printf("\r\n%d",respic)没输出 |