高级会员
- 积分
- 739
- 金钱
- 739
- 注册时间
- 2015-11-15
- 在线时间
- 226 小时
|
楼主 |
发表于 2015-12-29 21:08:35
|
显示全部楼层
void timer0() interrupt 1
{
TR0=0;
TH0=(65536-46080)/256;
TL0=(65536-46080)%256;
if(S2==0)
{
out =10*(out+0.1);
iout =out;
outs=iout/10;
outg=iout%10;
write_com(0x82);
write_date(0x20);
write_date(0x30+outs);
write_date(0x2e);
write_date(0x30+outg);
}
else if(S3==0)
{
out =10*(out-0.1);
iout =out;
outs=iout/10;
outg=iout%10;
write_com(0x82);
write_date(0x20);
write_date(0x30+outs);
write_date(0x2e);
write_date(0x30+outg);
}
TR0 =1;
} |
|