/*********************************************************************************************************************** ds18b20.h 头文件
***********************************************************************************************************************/
#ifndef _DS18B20_H_
#define _DS18B20_H_
#include <reg51.h>
#define led P1
#define ledw P2
extern unsigned char f;
extern void ds18b20_reset();
extern void dela(unsigned char i);
extern void ds18b20_write(unsigned char dat);
extern unsigned char ds18b20_read();
extern unsigned char ds18b20_temp();
extern unsigned char ledtab[];
#endif
|