//防止被重复定义 #ifndef __DS18B20_H__ #define __DS18B20_H__ #include //#include "LCD1602.h" #define uint unsigned int #define uchar unsigned char #define delayNOP() {_nop_();_nop_();_nop_();_nop_();} /*-----------------------------------------------------------------*/ //接口定义 sbit DS18B20_DQ = P2^3; // 温度探头(DQ)数据端口对应的单片机引脚 uchar Minus_Flag=0; uchar code Temp_Disp_Title[]={"Current Temp : "}; uchar Current_Temp_Display_Buffer[]={"TEMP: "}; uchar Temp_Value []={0x00,0x00}; uchar Display_Digit[]={0,0,0};