代码拉取完成,页面将自动刷新
/*!
* @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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。