#include <reg52.H>
#define uint unsigned int
#define uchar unsigned char
sbit P0_0=P0^0;
sbit P0_1=P0^1;
sbit P3_0=P3^0;
sbit P3_1=P3^1;
sbit P3_2=P3^2;
sbit P3_3=P3^3;
sbit P3_4=P3^4;
sbit P3_5=P3^5;
uchar sshi,sge,miaoshi,miaoge;
uchar temp,mtemp=45,hge,hshi,htemp=10;
uint tmany;
uchar code table[]={
0x3f,0x06,0x5b,0x4f, 0x66,
0x6d,0x7d,0x07, 0x7f,0x6f
};
void delay(uint z)
{
uint x,y;
for(x=z;x>0;x--)
for(y=50;y>0;y--);
}
void butt()
{
uchar but1,but2;
but1=P0_0;
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余3页未读,立即下载