//通過(guò)18B20檢測(cè)的數(shù)字溫度可在電腦上顯示當(dāng)前溫度值
#include <reg52.h>
#define uchar unsigned char
#define uint unsigned int
sbit DS=P2^2 //define interface
uint temp // variable of temperature
uchar flag1 // sign of the result positive or negative
sbit dula=P2^6
sbit wela=P2^7
標(biāo)簽:
define
unsigned
include
18B20
上傳時(shí)間:
2014-01-19
上傳用戶(hù):Andy123456