sbit beep=P2^1;
sbit s2=P1^1;
sbit s3=P1^2;
sbit s4=P1^3;
bit flag;
uchar shi,fen,miao,ri,yue,nin,k;
uchar num,num1,count;
uint i,sh,ge,s,g;
uchar code table[]={"pangchunhuishuai"};
uchar code table1[]={" 00:00:55"};
void delay(uchar time)
{
uint j;
for(;time>0;time--)
for(j=0;j<125;j++);
}
部分代码,源程序在附件
|