📄 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: The main() function example template
**
**------------------------------------------------------------------------------------------------------
** Created by: Chenmingji
** Created date: 2004-09-16
** Version: 1.0
** Descriptions: The original version
**
**------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
** Version:
** Descriptions:
**
********************************************************************************************************/
#include "config.h"
#define __SRC
#include"main.h"
#undef __SRC
#include "LCM.h"
#include "print.h"
char print_str[]="http://www.tengdian.com\r\n";
extern uint8 windows_td[][16];
extern uint8 welcome_td[][16];
extern uint8 moto_1[][16];
extern uint8 moto_2[][16];
extern uint8 moto_3[][16];
extern uint8 moto_4[][16];
extern uint8 moto_5[][16];
int main (void)
{
//系统初始化
uint32 m_i,m_k,m_j;
uint32 i;
Delay_n100MS(5);
/////////////////////////液晶屏幕的初始化/////////////////////////////////
InitLCM19264D();
ClearLCM19264D();
Disp19264BMP(windows_td);//
Delay_n100MS(30);
ClearLCM19264D();
Disp19264BMP(welcome_td);//
Delay_n100MS(30);
ClearLCM19264D();
Wryw16x8_String(0,0,"Http://www.tengdian.com");
Wrzw16x16_String(0,1,"上海腾电电子科技有限公司");
Wrzw24x24_String(6,5,"我心飞翔!");
Delay_n100MS(30);
ClearLCM19264D();
Wrzw16x16_String(0,1,"进入打印程序:");
print_init();
for(i=0;i<8;i++)
{
print_string(print_str,23);
}
print_string(print_str,23);
while(1);
return 0;//main
}
/*************************************************************************
函数名:Delay_n100MS
功能:延时
作者:潘江长
说明:这个函数以及经过实际测试,i<11000的情况下,基本上为0.1秒
********************************************************************************/
void Delay_n100MS(uint32 dly)
{ uint32 i;
for(; dly>0; dly--)
for(i=0; i<11000; i++);
}
void Delay_n10MS(uint32 dly)
{ uint32 i;
for(; dly>0; dly--)
for(i=0; i<1100; i++);
}
/*********************************************************************************************************
** End Of File
********************************************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -