室内环境检测系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
502 B

#ifndef __DHT11_H
#define __DHT11_H
#include "sys.h"
//IO<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
void DHT11_IO_IN(void);
void DHT11_IO_OUT(void);
////IO<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define DHT11_DQ_OUT PBout(15) //<EFBFBD><EFBFBD><EFBFBD>ݶ˿<EFBFBD>
#define DHT11_DQ_IN PBin(15) //<EFBFBD><EFBFBD><EFBFBD>ݶ˿<EFBFBD>
u8 DHT11_Init(void);//<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD>DHT11
u8 DHT11_Read_Data(u8 *temp,u8 *humi);//<EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD>ʪ<EFBFBD><EFBFBD>
u8 DHT11_Read_Byte(void);//<EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD>ֽ<EFBFBD>
u8 DHT11_Read_Bit(void);//<EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD>λ
u8 DHT11_Check(void);//<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>DHT11
void DHT11_Rst(void);//<EFBFBD><EFBFBD>λDHT11
#endif