• 大小: 8.08MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-06
  • 语言: 其他
  • 标签: STM32F4  OV7725  BMP  SD卡  

资源简介

使用正点原子的STM32F407探索板,驱动OV7725,在LCD上实时显示OV7725获取的图像,按下KEY2,进行截图,图片类型为BMP,保存在SD卡上

资源截图

代码片段和文件信息

/*------------------------------------------------------------/
/ Open or create a file in append mode
/------------------------------------------------------------*/

FRESULT open_append (
    FIL* fp            /* [OUT] File object to create */
    const char* path    /* [IN]  File name to be opened */

{
    FRESULT fr;

    /* Opens an existing file. If not exist creates a new file. */
    fr = f_open(fp path FA_WRITE | FA_OPEN_ALWAYS);
    if (fr == FR_OK) {
        /* Seek to end of the file to append data */
        fr = f_lseek(fp f_size(fp));
        if (fr != FR_OK)
            f_close(fp);
    }
    return fr;
}


int main (void)
{
    FRESULT fr;
    FATFS fs;
    FIL fil;

    /* Open or create a log file and ready to append */
    f_mount(&fs ““ 0);
    fr = open_append(&fil “logfile.txt“);
    if (fr != FR_OK) return 1;

    /* Append a line */
    f_printf(&fil “%02u/%02u/%u %2u:%02u\n“ Mday Mon Year Hour Min);

    /* Close the file */
    f_close(&fil);

    return 0;
}


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     109142  2014-07-17 21:52  LCD&OV7725&BMP\CORE\core_cm4.h

     文件      22735  2014-07-17 21:52  LCD&OV7725&BMP\CORE\core_cm4_simd.h

     文件      17146  2014-07-17 21:52  LCD&OV7725&BMP\CORE\core_cmFunc.h

     文件      20513  2014-07-17 21:52  LCD&OV7725&BMP\CORE\core_cmInstr.h

     文件      29605  2014-08-02 00:12  LCD&OV7725&BMP\CORE\startup_stm32f40_41xxx.s

     文件       3248  2014-01-15 00:31  LCD&OV7725&BMP\FATFS\doc\css_e.css

     文件       3661  2014-01-15 00:31  LCD&OV7725&BMP\FATFS\doc\css_j.css

     文件       1063  2013-09-18 21:47  LCD&OV7725&BMP\FATFS\doc\img\app1.c

     文件       1597  2013-10-18 21:41  LCD&OV7725&BMP\FATFS\doc\img\app2.c

     文件       3811  2014-01-13 20:56  LCD&OV7725&BMP\FATFS\doc\img\app3.c

     文件      10365  2014-01-07 15:10  LCD&OV7725&BMP\FATFS\doc\img\app4.c

     文件       1414  2011-09-02 22:10  LCD&OV7725&BMP\FATFS\doc\img\f1.png

     文件       1458  2007-02-10 03:12  LCD&OV7725&BMP\FATFS\doc\img\f2.png

     文件       1039  2007-02-10 03:12  LCD&OV7725&BMP\FATFS\doc\img\f3.png

     文件       2335  2008-01-05 20:27  LCD&OV7725&BMP\FATFS\doc\img\f4.png

     文件       2479  2008-01-05 20:27  LCD&OV7725&BMP\FATFS\doc\img\f5.png

     文件       1436  2010-08-21 10:13  LCD&OV7725&BMP\FATFS\doc\img\f6.png

     文件      11388  2013-05-12 12:31  LCD&OV7725&BMP\FATFS\doc\img\f7.png

     文件      11421  2014-02-19 22:38  LCD&OV7725&BMP\FATFS\doc\img\funcs.png

     文件       2401  2009-03-20 21:57  LCD&OV7725&BMP\FATFS\doc\img\layers.png

     文件       2379  2009-06-13 21:48  LCD&OV7725&BMP\FATFS\doc\img\layers3.png

     文件       7932  2013-12-27 12:20  LCD&OV7725&BMP\FATFS\doc\img\modules.png

     文件      19068  2008-10-18 19:31  LCD&OV7725&BMP\FATFS\doc\img\rwtest.png

     文件       8153  2010-09-13 10:55  LCD&OV7725&BMP\FATFS\doc\img\rwtest2.png

     文件       3011  2009-06-15 00:03  LCD&OV7725&BMP\FATFS\doc\img\rwtest3.png

     文件       5352  2014-01-15 00:31  LCD&OV7725&BMP\FATFS\doc\updates.txt

     文件       3229  2017-04-17 13:32  LCD&OV7725&BMP\FATFS\exfuns\exfuns.c

     文件       1564  2014-08-29 15:13  LCD&OV7725&BMP\FATFS\exfuns\exfuns.h

     文件       7249  2017-04-16 23:19  LCD&OV7725&BMP\FATFS\exfuns\fattester.c

     文件        749  2017-04-16 23:22  LCD&OV7725&BMP\FATFS\exfuns\fattester.h

............此处省略301个文件信息

评论

共有 条评论