init
This commit is contained in:
14
include/ds18b20.h
Normal file
14
include/ds18b20.h
Normal file
@ -0,0 +1,14 @@
|
||||
#ifndef _ds18b20_H
|
||||
#define _ds18b20_H
|
||||
|
||||
#include "public.h"
|
||||
|
||||
//管脚定义
|
||||
#define DS18B20_PORT P3_7 //DS18B20数据口定义
|
||||
|
||||
#define _nop_() __asm NOP __endasm
|
||||
//函数声明
|
||||
u8 ds18b20_init(void);
|
||||
float ds18b20_read_temperture(void);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user