main.c

来自「本程序能实现数字式可调定时显示复位功能的LCD液晶显示。软件用PROTUES仿真」· C语言 代码 · 共 32 行

C
32
字号
#include <REG52.H>
char dat[]={0,8,11,0,8,11,0,8,12,0,8,10,0,8,10,0,8};
char tmp,flg,flg1; 
char dat1[]={0,8,11,0,8,11,0,8,12,0,8,10,0,8,10,0,8};
char dat2[]={0,8,11,0,8,11,0,8,12,0,8,10,0,8,10,0,8};
char dat3[]={0,0,11,0,0,11,0,0,11,0,0};
#include "CM160128C.h"
#include "DS1302.h"
#include "set.h"


main()
{
	LCD_CE=0;
	LCD_Init();	
	Initial_DS1302();
	hazi();
	flg=0; flg1=0;     

	while(1)
	{
		gettime();      
		noline(2,3,dat);
		noline(3,3,dat1);
		noline(4,3,dat2);
		no_inv(5,6,dat3);
		inv_time();		
		if(!p10)int_time();
		set_time();		
	}
}

⌨️ 快捷键说明

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