//變量聲明
int temp;
int j=0;
unsigned int time=0;
unsigned int timer=0;
unsigned char posit=0;
unsigned int S=0;
float S0=0;
float S2=0;
float v=0;
unsigned int h=0;
float h0=0;
//模式 0正常模式 1調整
char Mode=0;
bit flag=0;
bit flag_KEY=0;
float distance[5]={0,0,0,0,0};
unsigned char const discode[] ={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x40,0xff/*-*/}; //數碼管顯示碼0123456789-和不顯示