ds18b20程序包含温度设置、报警、华氏温度和摄氏温度转换
# include <regx51.h># include <intrins.h>float flag=0;unsigned int up=30,down=20,kf=1,hfflag=1,hf;//
ds18b20程序包含温度设置、报警、华氏温度和摄氏温度转换