1 Star 0 Fork 0

DFRobot/DFRobot_DHT11

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
DFRobot_DHT11.h 749 Bytes
一键复制 编辑 原始数据 按行查看 历史
Arya11111 提交于 2022-02-08 10:38 +08:00 . V1.0.0
/*!
* @file DFRobot_DHT11.h
* @brief DHT11 is used to read the temperature and humidity of the current environment.
*
* @copyright Copyright (c) 2010 DFRobot Co.Ltd (http://www.dfrobot.com)
* @license The MIT License (MIT)
* @author [Wuxiao](xiao.wu@dfrobot.com)
* @version V1.0
* @date 2018-09-14
* @url https://github.com/DFRobot/DFRobot_DHT11
*/
#ifndef DFROBOT_DHT11_h
#define DFROBOT_DHT11_h
#if defined(ARDUINO) && (ARDUINO >= 100)
#include <Arduino.h>
#else
#include <WProgram.h>
#endif
class DFRobot_DHT11{
public:
/**
* @fn read
* @brief Read DHT11 data
* @param pin: Connect the IO port of the DHT11 data port.
* @return NONE
*/
void read(int pin);
int humidity;
int temperature;
};
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/dfrobot/DFRobot_DHT11.git
git@gitee.com:dfrobot/DFRobot_DHT11.git
dfrobot
DFRobot_DHT11
DFRobot_DHT11
master

搜索帮助