小学生
最后登录1970-1-1
在线时间 小时
注册时间2014-5-18
|
int main(void)
{
while(1)
{
uint8_t file_name[20];
uint8_t num = 0;
/* ÅäÖÃSysTick Ϊ10usÖжÏÒ»´Î */
SysTick_Init();
/*--------------------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------------------------------*/
/* Òº¾§³õʼ»¯ */
LCD_Init();
/* ÉèÖÃÒº¾§É¨Ãè·½ÏòΪ ×óϽÇ->ÓÒÉÏ½Ç */
Lcd_GramScan( 2 );
LCD_Clear(0, 0, 320, 240, BACKGROUND);
/* ³õʼ»¯sd¿¨Îļþϵͳ£¬ÒòΪºº×ÖµÄ×Ö¿âºÍbmpͼƬ·ÅÔÚÁËsd¿¨ÀïÃæ */
Sd_fs_init();
/*--------------------------------------------------------------------------------------------------------*/
/* ov7725 gpio ³õʼ»¯ */
Ov7725_GPIO_Config();
/* ov7725 ¼Ä´æÆ÷ÅäÖóõʼ»¯ */
while(Ov7725_Init() != SUCCESS);
/* ov7725 ³¡ÐźÅÏß³õʼ»¯ */
VSYNC_Init();
Ov7725_vsync = 0;
/*-------------------------------------------------------------------------------------------------------*/
while(1)
{
Delay_us(1000000);
sprintf((char *)&file_name,"/camera%d",num++);
/* ÉèÖÃÒº¾§É¨Ãè·½ÏòΪ ÓÒϽÇ->×óÉÏ½Ç */
Lcd_GramScan( 3 );
Screen_shot(0,0,320,240,file_name); }
}
}
执行红色的截图函数之后,程序就停止了 |
|