基于AT89C2051+ds18b20的溫度計程序設(shè)計
#include
#include
#define uchar unsigned char
#define uint unsigned int
uchar code table[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};
uint tempe;
sbit DQ=P3^5;
sbit p=P3^1;
sbit q=P3^2;
sbit r=P3^3;
sbit s=P3^4;
void delay1(uint z) //延時函數(shù)
{
}
void delay(uint t)
{
}
void display(void)
{
}
void init_ds18b20(void)
{
}
void wr_ds18b20(uchar dat)
{
}
uchar re_ds18b20(void)
{
}
uchar rd_temperature(void)
{
}
void main()
{
}
評論