1 Star 0 Fork 1

youxinweizhi/zabbix-trapper-arduino

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
dht.h 600 Bytes
一键复制 编辑 原始数据 按行查看 历史
root 提交于 2021-03-18 16:05 +08:00 . new projest
//
// FILE: dht.h
// VERSION: 0.1.00
// PURPOSE: DHT Temperature & Humidity Sensor library for Arduino
//
// URL: http://arduino.cc/playground/Main/DHTLib
//
// HISTORY:
// see dht.cpp file
//
#ifndef dht_h
#define dht_h
#if ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
#define DHT_LIB_VERSION "0.1.00"
class dht
{
public:
int read11(uint8_t pin);
int read22(uint8_t pin);
int humidity;
int temperature;
private:
uint8_t bits[5]; // buffer to receive data
int read(uint8_t pin);
};
#endif
//
// END OF FILE
//
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/youxinweizhi/zabbix-trapper-arduino.git
git@gitee.com:youxinweizhi/zabbix-trapper-arduino.git
youxinweizhi
zabbix-trapper-arduino
zabbix-trapper-arduino
master

搜索帮助