基于51单片机的ds18b20程序 #include #include #define uchar unsigned char #define uint unsigned int #define led P1 sbit en1=P3^0; sbit en2=P3^1; sbit DS=P3^7; uchar h; uchar l; uchar temp; uchar code shu[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,}; void delay(uchar i) /*9+3*(i