Fork
Dependents: DHT11_and_DHT22_MbedOS5_Example
Revision 5:cd2c41384ab8, committed 2019-11-08
- Comitter:
- Daniel_Lee
- Date:
- Fri Nov 08 04:33:22 2019 +0000
- Parent:
- 4:1b4e37ce64f8
- Commit message:
- update;
Changed in this revision
DHT.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 1b4e37ce64f8 -r cd2c41384ab8 DHT.h --- a/DHT.h Fri Nov 08 04:21:13 2019 +0000 +++ b/DHT.h Fri Nov 08 04:33:22 2019 +0000 @@ -34,19 +34,8 @@ #define MBED_DHT_H #include "mbed.h" -typedef enum eType eType; -enum eType { - DHT11 = 11, - SEN11301P = 11, - RHT01 = 11, - DHT22 = 22, - AM2302 = 22, - SEN51035P = 22, - RHT02 = 22, - RHT03 = 22 -}; -/* -typedef enum{ + +typedef enum { DHT11 = 11, SEN11301P = 11, RHT01 = 11, @@ -56,8 +45,8 @@ RHT02 = 22, RHT03 = 22 }eType; -*/ -typedef enum eError { + +typedef enum { ERROR_NONE = 0, BUS_BUSY, ERROR_NOT_PRESENT, @@ -66,13 +55,13 @@ ERROR_DATA_TIMEOUT, ERROR_CHECKSUM, ERROR_NO_PATIENCE -}; +}eError; -typedef enum eScale { +typedef enum { CELCIUS = 0, FARENHEIT, KELVIN -}; +}eScale; class DHT