📄 main.c
字号:
/****************************************Copyright (c)**************************************************
** Guangzou ZLG-MCU Development Co.,LTD.
** graduate school
** http://www.zlgmcu.com
**
**--------------File Info-------------------------------------------------------------------------------
** File name: main.c
** Last modified Date: 2004-09-16
** Last Version: 1.0
** Descriptions: 如果使用DebugInExram生成目标编译工程,使用JTAG仿真调试时,注意开发板上的JP10跳线
** 需设置Bank0-Flash, Bank1-RAM。
**------------------------------------------------------------------------------------------------------
** Created by:
** Created date:
** Version:
** Descriptions:
**
**------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
** Version:
** Descriptions:
**
********************************************************************************************************/
#include "config.h"
extern void Disp_Pic1(void);
extern void HzDisp(void);
extern void DelayNS(uint32 dly);
/****************************************************************************
* 名称:DelayNS()
* 功能:长软件延时
* 入口参数:dly 延时参数,值越大,延时越久
* 出口参数:无
****************************************************************************/
void DelayNS(uint32 dly)
{ uint32 i;
for(; dly>0; dly--)
for(i=0; i<10000; i++);
}
// 主程序。控制LCD显示图片、汉字,控制LED显示流水灯。
int main (void)
{
PINSEL0 = 0x00000000;
PINSEL1 = 0x00000000;
GUI_Initialize();
while(1)
{
Disp_Pic1();
DelayNS(300);
GUI_ClearSCR();
// 显示" 上海
// 第二
// 工业
// 大学"
HzDisp();
DelayNS(200); // 延时
GUI_ClearSCR();
}
return(0);
}
/*********************************************************************************************************
** End Of File
********************************************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -