#include <reg52.h>
#include <intrins.h>
sbit DQ = P3 ^ 3; //定义 DS18B20 端口 DQ
sbit BEEP = P3 ^ 7; //定义蜂鸣器控制端口
bit presence;
unsigned char code LEDData[] =
{
0xC0, 0xF9, 0xA4, 0xB0, 0x99, 0x92, 0x82,
0xF8, 0x80, 0x90, 0xff, 0xc6, 0x9c, 0xbf
};
unsigned char data temp_data[2];
unsigned char data display[7] =
{
0x0b, 0x0c, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d
};