unsigned int disp[8]={0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f};
unsigned char receiveData[8];
unsigned char code danpianji[]="ID:41458027 Temp:";
unsigned char m=0;
void LcdDisplay(int);
void Timer0Configuration();
void UsartConfiguration();
void DigDisplay1();
void Delay(unsigned int n);
void Turn();
/****************************************************************************** *
* 函数名 : main
* 函数功能 : 主函数
* 输入 : 无
* 输出 : 无
******************************************************************************* /
void main()
{
unsigned char i;
Timer0Configuration(); //调用计时器
UsartConfiguration(); //启用计时器
for(i=0;i<8;i++)
{
disp[i]=DIG_CODE[i+10];
}
while(strcmp(receiveData,"GetTemp"))
{
void DigDisplay1();
}
while(1)
{
LcdDisplay(Ds18b20ReadTemp());
if(K2==0)
{
Delay(1);
if(K2==0) break;
}
}
8