main.c

来自「SmartARM2400系列开发板全套资料」· C语言 代码 · 共 51 行

C
51
字号
/****************************************Copyright (c)***************************************************
**                               Guangzou ZHIYUAN electronics Co.,LTD.
**                                      
**                                 http://www.embedtools.com
**
**--------------File Info--------------------------------------------------------------------------------
** File name:			main.c
** Last modified Date:  2008.04.25
** Last Version:		V1.00
** Descriptions:		The main() function example template
**
**-------------------------------------------------------------------------------------------------------
** Created by:		   	Houxiaolong
** Created date:		2008.04.25
** Version:				V1.00
** Descriptions:		
**
**-------------------------------------------------------------------------------------------------------
** Modified by:			
** Modified date:		
** Version:
** Descriptions:		
**
*********************************************************************************************************/
#include "main.h"

/*********************************************************************************************************
** 函数名称 :main()
** 函数功能 :演示LPC247X的LCD控制器
** 调试说明 :此程序不能在内部RAM中调试
*********************************************************************************************************/
int main (void)
{
    int i;                                                              
    lcd_Init();                                                         /*  初始化液晶                  */                                           

    cursor_On();                                                        /*  显示光标                    */
	
	for (i = 0; i < 200; i++) {
	    cursor_SetPosition(i,i);                                        /*  移动光标                    */
	    delay_Ns(10);
	}

	while(1);
	
    return 0;
}
/*********************************************************************************************************
**                            End Of File
*********************************************************************************************************/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?