Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of DHT22 by
DHT22.h
- Committer:
- chanmei
- Date:
- 2018-01-02
- Revision:
- 1:0e56fa91f397
- Parent:
- 0:7fd3ff04ae95
File content as of revision 1:0e56fa91f397:
#ifndef MBED_DHT22_H
#define MBED_DHT22_H
#include "mbed.h"
class DHT22 {
private:
int _temperature,_humidity;
PinName _data_pin;
public:
DHT22(PinName);
bool sample();
int getTemperature();
int getHumidity();
};
#endif
