基于STC89S52单片机的教室照明智能控制系统设计
#include
#include
#define uchar unsigned char
#define uint unsigned int
uchar time_data[7]; //ÉèÖÃÊý×é×÷Ϊʱ¼äУ¶ÔµÄ´¦³õÖµ
uchar code write_add[7]={0x8c,0x8a,0x88,0x86,0x84,0x82,0x80}; //Êý¾ÝµÄµØÖ·
uchar code read_add[7]={0x8d,0x8b,0x89,0x87,0x85,0x83,0x81};
uchar code table1[]="C: 00|2000/00/00";
uchar code table2[]="T: 00|00:00:00 0";
uchar code table3[]=" "; //ÇåÆÁÄÚÈÝ
uchar code table4[]=" Set Real Time ";
uchar code table5[]=" Set Open Time ";
uchar code table6[]=" Start Time: ";
uchar code table7[]=" 00:00:00 ";
uchar code table8[]=" End Time: ";
uchar code table9[]="Date: 2000/00/00";
uchar code table0[]="Time: 00:00:00 0";
1