资源简介
使用正点原子的STM32F407探索板,驱动OV7725,在LCD上实时显示OV7725获取的图像,按下KEY2,进行截图,图片类型为BMP,保存在SD卡上
![](http://www.nz998.com/pic/70065.jpg)
代码片段和文件信息
/*------------------------------------------------------------/
/ 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\la
文件 2379 2009-06-13 21:48 LCD&OV7725&BMP\FATFS\doc\img\la
文件 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个文件信息
- 上一篇:数据结构课程设计-池塘夜降彩色雨
- 下一篇:华为网络基础讲义复习备考.rar
相关资源
- stm32f407上的两个can发送和接收例程
- 如何实现bmp位图透明贴图
- bmp文件读出为txt文件 txt文件写入为
- bmp2c
- BmpButton
- 基于STM32F4x9的LCD显示
- stm32F4+w5300
- 基于V4L2的视频采集,能够采集YUVJPE
- FreeModbus_Slave+STM32F407+USART2代码亲测可
- AlCl3抑制大鼠骨形成及BMP/Smad信号转导
- STM32F407 串口配置 串口1~6 六串口同时
- STM32F407_6个串口同时使用的代码
- STM32F407实时时钟_DS1302实时时钟模块和
- STM32F429内部FLASH读写程序
- stm32f407读写flash的demo,基于正点原子
- STM32F4x7_ETH_LwIP_V1.0.0
- ov7725彩色摄像头显示图像k60源码
- ORL_BMP.zip
- 基于STM32F407的视频采集与传输系统设
- BMP位图文件解析
- ZEDBoard实现OV7725显示Verilog
- 编程常用的素材(含png、jif、bmp、j
- W5500Test-20180314.7z
- jpeglib读取jpeg,转为bmp图,24真彩和灰
- 617张国内车牌60-17bmp图片用于OpenCV正样
- pEGFP-N1/BMP-2真核表达质粒的构建与鉴定
- STM32F407ZG_ESP8266例程
- 简单\“(8bit)Raw图像文件转换为(
- Keil5下的STM32F407程序
- ORL人脸数据集,40个人,共400张bmp格式
评论
共有 条评论