Print_Byte((calendar_time[2]%10)|0x30);
Print_String("日");
Print_Byte((calendar_time[3]/10)|0x30);
Print_Byte((calendar_time[3]%10)|0x30);
Print_String("时");
Print_Byte((calendar_time[4]/10)|0x30);
Print_Byte((calendar_time[4]%10)|0x30);
Print_String("分");
//Print_Byte((calendar_time[5]/10)|0x30);
//Print_Byte((calendar_time[5]%10)|0x30);
//Print_String("秒");
Print_Byte(13);
Print_String("测试电容电压值:");
prv();
Print_Byte(0x56); //56H
Print_Byte(13);//0D回车
Print_String("测试电容值:");
readc();
prc=c.printc;
printcap ();
Print_Byte(13);//0D回车
Print_String("-------------------");
Print_Byte(13);//0D回车
Print_Byte(0x1b);//设置行距
Print_Byte(0x4a);
Print_Byte(0x20); //20点空行
PRINTLED=0;//;;;;;打印指示灯亮
Delay(1500); //延时300ms?
PRINTLED=1;
}
}
else if(Key==1)
{
SHEDING=1;//设定标志永远为1,即只有手动 没有自动
//SHEDING=!SHEDING;//如果有自动操作时需加入此指令,SHEDING=0自动SHEDING=1手动。
PRINT=0;
RUN=0;
if (SHEDING==0)
{
autoflashdisplay();
}
else
{
handflashdisplay ();
}
}
else if(Key==2)//键值为2。运行,显示闪烁变为不闪烁
{
RUN=!RUN;
PRINT=1;
{
dat = 0xff;//闪烁控制,为1不闪烁
ZLG7289_Flash(dat);
}
//save
{
do{ temp=REG_A;} //读积存器A
while(temp&0x80);//为1时间更新很快将要发生。既为1时一直读并判断
TIME_FLAG1=flag1;
TIME_M=m;
}
}
else if(Key==3)
{
if((SHEDING==1)&&(RUN==0)==1)
{
if (0<=m<0x0a)//判断M 档位//////////11档位
m++;
else
m=0;
if (m==0x0b)///
{
m=0;
}
{
handflashdisplay ();//手动闪烁显示
}
}
}
else if (Key==4)
{
if((SHEDING==1)&&(RUN==0)==1)
{
if (0<m<0x0d)/////
m--;
else
m=0;
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-39167-41.html
只要去关注就可以了
现在的喷气式飞机是当年螺旋桨可比的吗
建议先不升