Fork
Dependents: DHT11_and_DHT22_MbedOS5_Example
Diff: DHT.h
- Revision:
- 4:1b4e37ce64f8
- Parent:
- 2:df22ddf10d75
- Child:
- 5:cd2c41384ab8
--- a/DHT.h Sat May 28 11:11:34 2016 +0000 +++ b/DHT.h Fri Nov 08 04:21:13 2019 +0000 @@ -34,7 +34,6 @@ #define MBED_DHT_H #include "mbed.h" - typedef enum eType eType; enum eType { DHT11 = 11, @@ -46,9 +45,19 @@ RHT02 = 22, RHT03 = 22 }; - -typedef enum eError eError; -enum eError { +/* +typedef enum{ + DHT11 = 11, + SEN11301P = 11, + RHT01 = 11, + DHT22 = 22, + AM2302 = 22, + SEN51035P = 22, + RHT02 = 22, + RHT03 = 22 +}eType; +*/ +typedef enum eError { ERROR_NONE = 0, BUS_BUSY, ERROR_NOT_PRESENT, @@ -59,8 +68,7 @@ ERROR_NO_PATIENCE }; -typedef enum eScale eScale; -enum eScale { +typedef enum eScale { CELCIUS = 0, FARENHEIT, KELVIN