搜索
查看: 1569|回复: 0

[已解决] STM32利用FF往SD卡写入BMP文件

[复制链接]

该用户从未签到

3

主题

10

帖子

0

蝴蝶豆

新手上路

最后登录
1970-1-1
发表于 2013-8-22 10:32:03 | 显示全部楼层 |阅读模式
uc8 Bmp24Header[54]= ///224*320
{
        0x42, 0x4D, 0x36, 0x48, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 0x00, 
        0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0xE0, 0x00, 0x00, 0x00, 0x01, 0x00, 0x18, 0x00, 0x00, 0x00, 
        0x00, 0x00, 0x00, 0x48, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};

 
 void Saveimage(u16 index)
{
    unsigned int x,y,c;
    unsigned int CNT;
    unsigned char R,G,B;
 
        SDError=SD_ERROR;
        InitTimes=0;
          while ((SDError!=SD_OK)&&(InitTimes
回复

使用道具 举报

您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /3 下一条

Archiver|手机版|小黑屋|论坛-意法半导体STM32/STM8技术社区

GMT+8, 2024-5-4 13:15 , Processed in 1.144985 second(s), 29 queries .

Powered by Discuz! X3.4

Copyright © 2001-2024, Tencent Cloud.

快速回复 返回顶部 返回列表